Results for "Author: morgan haueisen"
An easy way to add, read, remove, and find items in a single dimensioned array (emulates VB’s ListBox functionality without the user interface). Don’t use a ListBox or a Collection to build an array just because they have built in functions that make them easier to use; both these choices are slow, require a lot of overhead and were designed to meet a specific need. (UPDATED: Added Property Get Text).
is an easy to use unit conversion program that will convert the most popular units of acceleration, angle, distance, temperature, volume, time, velocity, weight, power, density, pressure, energy, number base and many others, including the ability to create custom conversions. It also remembers the last user input for each group. ----------------------(UPDATE: 6/1/11 - Added special conversion for liter/100km)
(Updated 11/09/04) This application will give you a well-formatted printout that includes a cover page, a table of contents and a project summary. You can select what will be printed, from the entire project, a single procedure in a module, or just the project summary. You can send the output to the screen (preview) or the printer. You can also export the results to a RTF file, HTML file, or a bitmap file (using the preview). It also has some additional printing options to save paper. Includes a stand-alone version as well a VB add-in. It uses VB6's TreeView control, so it will not work with older version of VB. (Project's name change: was 'A Project's Source Code Printer).
(Update 5/11/04 - added another display type) This is an alert window that rises up from the taskbar or fades in/out. I had no intentions of posting this but after seeing Todd Tanner's MSN style alert window, and having my comments deleted, I decided to post it for education purposes only. NO VOTING PLEASE but comments are welcome. (Update 4/7/04 - Added options for border style, background color, and Close by code only.)
(Bug Fix 1/23/07) Mimics an Adding machine that creates a tape that you can print. Unlike a standard adding machine, you can modify values on the tape (by double clicking on the number to change) to fix any errors without having to reenter the entire list again. It remembers the last number entered so to add several of the same number by pressing the math key again. You can use the keyboard and/or mouse for entrees. (XP users: Compile and run to see the XP look.)
(Update 5/28/08: Bug Fix) ** (Update 3/22/06 - added pag file formating and check for subclassing) Fix poorly formatted code by reformat all tab indenting and removing all double spaces between lines, - Add line continuations (user defined maximum line length, - Change type declaration postfix (exp: Dim x% changed to Dim x As Integer), - Change multi-line declaration to single line, - Insert ‘Option Explicit” where missing, - Alphabetically sort procedures within a module, - Move comments between procedures inside procedures. It supports drag-and-drop and command line (so you can add it to your Send-To list). You can save your code in RTF and HTML formats. All features, except tab indenting, can be turned on or off. This code was originally developed as a teaching tool. It will make backups of any files it changes and is very fast. Because the varieties of program styles are endless, ALWAYS test your modified code before you delete any backups created by this application. The code is simple and easy to follow, even for beginners. This is an update to a previous submission, NO VOITING PLEASE, but suggestions for improvement or enhancements would be appreciated.
A replacement for Sheridan's 3D (THREED32.OCX) SSPanel and SSFrame controls. This is not a direct replacement because some of the property names are different. A good alternative when using XP manifest files over VB's Frame control and a picture box (which contains a lot of overhead). This control has 70 different border combinations and 3 text styles that can be positioned one of 15 possible locations. You can change the background, highlight and shadow colors; add gradient fill and/or fill with a pattern. Also included: Line3D control, automatically create a manifest file, link XP themes to the application, and End an application the proper way. Please see the Readme file for a listing of the property definitions.
(Update: Added Home and Esc Keys and GetCountOfWeekDayInMonth and Changes to daylight savings time taking place in 2007) 22 functions for working with dates. Included are a Calendar Form (which mimics the one found in mscomct2.ocx) and a Class module; both are independent entities (you can use one without the other). The Calendar Form provides a "popup" calendar using VB code only, no OCXs or DLLs. The Class module provides various date functions.
(Update 2/17/05) You should include error handling in every procedure of your application regardless of its size or purpose. Usually, during an application’s design phase, we naturally include “ON ERROR RESUME NEXT” to handle expected errors while we are writing the code. The problem occurs when the initial design is complete; we don’t always go back and add error trapping for those unexpected errors. This is usually because it takes to much time or we meant to but just miss some when we did. This utility will add error trapping and logging to all the procedures in your code that you didn’t. View the read_me document for more information. I am not interested in trying to winning the monthly contest so please DON’T vote; save your votes for those who are.
Update:2/15/05 - This application will scan both VBP and VBG project files. It will copy or move all the files referenced in a project file(s) to a project folder of your choosing, either new or current, and update the project file(s) with the new file locations. User Options Include: - Leave your existing project intact by creating a new project folder to copy the files to, - Move all your project files to a new project folder, - Update your current project by copying all referenced files not currently in your project’s folder to your project’s folder, - Organizes your project files by placing them in separate sub-folders, - Copy or Move any sub-folders that are currently in your project’s folder, - Copy or Move any miscellaneous (non VB) files like graphics, databases, and sound files that are in the same folder as the project file(s), - Delete empty folders, - Copy only newer files, - Prompt before overwriting existing files. No more submitting that perfect project to PSC, with high hopes, only to get e-mails back saying that your zipped project is missing files. This project comes as a standard exe or a VB6 add-in. It also supports command line so that you can create a shortcut to this application and place it into your “Send To” folder, giving you the ability to open projects from Windows Explorer. This is a complete project; meaning that error and data entry checks have been included along with warning messages and other user feedback. I have run extensive tests to make it as bug free as possible. Any comments or ideas for additional features would be greatly appreciated. PLEASE VIEW THE READ_ME FILE.
7/7/2003-BugFix in Function CheckForRoom. This is not meant to be a replacement for WinZip nor is it WinZip compatible (does not have all the header information). Its sole purpose is to provide your application a way to backup its data files in a compressed format. It is one class; you supply the source path and file name, destination path and file name, and the action (compress or decompress). It only compresses one file, so if you have multiple file to back-up, each will be compressed individually. See the READ_ME file for more information
Update 11-29-03, Address Book with VCard import/export; save both business and home addresses, phone numbers; send an email using your default email app, dial the phone number, many ways to sort your information. In the DAO version, several people had problems getting the application to open the database. This was due to differences in machine configurations that would normally have been solved during an installation. This was written several years ago. I don’t use it anymore and decided to clean it up, convert it to use ADO and post it on PSC. Hope you find it useful. Please see the ReadMe file.
Update 11-24-03 This does everything the standard msgbox does plus more and it is all in one file. It uses all the standard parameters for selecting the buttons, icons and sounds; which means it is a direct replacement for the standard msgbox. It automatically adjusts its size based on the amount of text to display (in the caption or the body of the message). What makes it different are the following: 1. Display it centered or at the current mouse position. 2. Display it with no buttons and close it through code only. 3. Display it so that it automatically closes after a specified number of seconds. 4. Display it as a modal or non-modal form. 5. Display 5 additional system icons. 6. Uses a more modern look, rounded corners and a yellow background to make it easer to read. 7. The special Help button is treated as any other button, returning a value when pressed. 8. The Ok button is not shown by default. You need to add the vbOkButton parameter to make it show. 9. NEW: Added an Inputbox function (frmMsgBox.sInputBox) with the same look and feel as the msgbox.
This isn't a standard validation that checks the text after it's entered. Every time a change is made (a key press, pasted text, or code populated), this code checks and modifies, if necessary, the text to meet the established criteria. Please read the included “ReadMe” file for more information. Let me know if you have any comments, suggestions, or bug reports.
A fast and easy way to rename files in bulk. Features include an Explore like interface with the ability to sort files in different ways, preview the changes, and undo your most recent rename. You change the file extension, make all file names lower/upper/proper case. Replace, delete or insert characters, add prefixes and suffixes, or replace the names altogether with a sequential name of your choice. By using the check-box before the file names, you can apply different changes to individual files. Click on the Apply button and all of the files with New File Names column filled will be changed. (Update: Added additional features)
This code provides the tools to allow you to make nice looking (multi-page) print/preview reports. I have included both the VB and C# versions. (Update: 4/07/10 - Bug Fix).
Updated 8-13-03. You can copy any object from one Form to another except the Menu; that is until now. This application will copy the menu properties and source code (under the Click event) from one Form to another. If the Destination Form already has a menu, it will be replaced with the menu from the Source Form or you can merge the Source and destination menus. There are few times you need to copy menus, but I wrote this app just to see if I could. Included are two form to try it with.
This code shows how to calculate loan payments and build an amortization table. It allows the user to include an additional payment, and calculates how much money is saved with the extra payment added. It will show you the total amount you will pay in interest over the life of the loan. The amortization table can be saved, modified, and printed. You can select a range of cells and copy them to the clipboard to be pasted into a different document. You can find what your monthly payment will be entering the loan amount, interest rate, and length of the loan or you can entering the a monthly payment, interest rate, and length of the loan and the application will tell you the total amount you can borrow. If you don't want to borrow but want to know how much you need to save each month to reach a goal, then this application will help you do that as well. It will even factor in cost of living increases. *** Update: Replaced the required OCX with custom controls.
Need Part 11 compliance then you will need multi-level password security with passwords that expire. This sample application will show you how to this to your applications. All you need to do is copy 2 forms, a class module and a module to your application (see below) and you are ready to go. It was written to use an Access database (ADO). You set up the access rights, add users, and assign these rights to the users. New users, by default, are assigned the password of password, which they must change the first time they try to log-in. A user can change their password anytime they choose as long as they know what their assigned password is. The security file (security.pwd) can be renamed to anything you like and is password protected. You can assign a unique application ID to insure that the security file can only be used with that application. If you are connected to a network, the application will display your network log-in ID automatically in the Log-in ID text box. The passwords can be set to expire after a user-defined number of days.
This will give you the tools and instructions necessary to convert your DAO project to ADO.