Sunday, May 18, 2014

Miscellaneous


1.      Accepting a Passed Command Parameter: If you want your application/module to accept a parameter value e.g., a file or graphic for your app to process, try the Command() Function code below............download
2.      Add Columns or Continuation Arrows to Menus with Many Items: This demo application shows you how to dynamically create submenu items for top-level and popup menus at run time. ...........download
3.      Add Cross Hairs that Follow your Mouse: This demo application shows you how to dynamically create submenu items for top-level and popup menus at run time.......download
4.      Add a file to the current project: When making an Addin, you may want this functionality. This tip shows how. ...........download
5.      Add new hardware: Show the add new hardware wizard. ...........download
6.      Add new printers: Show the add new printer wizard. ...........download
7.      Add your AddIn to the VBIDE: Some simple connect code. ...........download
8.      Allows Only One Instance of your App (Alternative Method): This snippet uses the FindWindow API function to prevent a second instance of your application from starting, as opposed to using app. ...........download
9.      Allows you to alter the text on messagebox buttons: Allows you to alter the text on messagebox buttons. ...........download
10.  Angel Viewer-A Scriptable, Power Point-Like Presentation Program: This is a Power Point-like application which allows you to create multimedia presentations. It features over  commands. ...........download
11.  Article-How To Use Resource Files With Demo Project: This is an article explaining how to use the resource editor and resource files to distribute things like icons, bitmaps, cursors, and AVI files with your application. ...........download
12.  Automate Comments in the VB IDE via an Add-In: This is an Add-In that provides a screen for specific types of comments and automatically formats and adds them to your code. ...........download
13.  BWord-Full Featured Text-RTF Editor: It allows you to copy the formatting (font size, font name, Underline, bold etc.) to text in the same document or in some other documents (but within Bword). ...........download
14.  Base Conversion: Provides conversion between numbers in different bases. ...........download
15.  Beeps to warn: To alert the user with a single beep for information,  beeps for warning,  beeps for critical error,... a generalised rotine can be written in a library module and used within your app. ...........download
16.  Bubble Sort: Perform a bubble sort on an array of numbers. ...........download
17.  CWizard Class- Simplifies Wizard Development: CWizard encapsulates the functionality of a wizard into a simple class. ...........download
18.  Calculate a persons age: Use DateDiff to find out how old you are. ...........download
19.  CallByName Hack: Have you tried to call nested properties in classes only to have the function fail. This simple hack describes how to get around this limitation in the CallByName function. ...........download
20.  Capture printer port dialog: Show the capture printer port dialog. ...........download
21.  Change cursor to an HourGlass and forget about it: This little ditty really helps when you want set an HourGlass cursor. ...........download
22.  Change the Default Properties of Controls (Add-In): This add-in allows you to change the default properties of controls. ...........download
23.  Character Recognition Software: A program designed to recognize user input of different patterns, like letters, and numbers. It is pre-programmed or pre-teached already for numbers and alphabets, and it is possible to teach it new characters. ...........download
24.  Check Writer: This complete program prints check data onto checks using a holder to hold the check on a piece of paper and then feed through a printer. ...........download
25.  Check if a year is a leap year: Determine if a year is or is not a leap year. ...........download
26.  Class Builder: To keep this brief (the readme.txt file contains more info), BMG ClassBuilder is an external replacement for the VB ClassBuilder. ...........download
27.  Clock Screen Saver: Compile this project with a .scr extension, copy it to your windows directory and it works as a screen saver that displays the time. ...........download
28.  Code Library for Saving Code Snippets: Basic but functional code library application for saving code snippets. Just copy your snippets in and name them and you can reuse them over and over again. ...........download
29.  Code Template Add-In for Visual Basic Version : This Add-In has a number of tools, including the Code Template Manager and the Project Details tool. ...........download
30.  Compile for  and  Bit OS: This code can be very useful for declaring API calls and constants if you are developing for both Win  and Win  operating systems. ...........download
31.  Connect: Does some cool stuff with addins. ...........download
32.  Conspiracy Generator: A fun program - shows case, counters, for loops and listbox. Some other things too - For Beginners, by Beginners. ...........download
33.  Conversions for Multiple Units of Measurement: This application allows you to convert across different units of measurement for mass, volume, distance, area, temperature, and time. ...........download
34.  Convert Letters and Numbers to Morse Code: This was a simple project I made when I first learned VB. It uses the If/Then statement to convert letters and numbers to morse code. ...........download
35.  Converting numbers to binary - again: Convert numbers to binary. ...........download
36.  Converting numeric dollars to text: Converting numeric dollars to text. ...........download
37.  Copy Protection Technique Using GetAttr Function: How does the Utility Software identify whether a file is changed or not? Here comes the Archive Bit. Normally backup software removes this bit, after the backup. This bit is automatically enabled when it is modified. ...........download
38.  Copy drive dialog: This tip works by simply using the Shell function to a function in rundll passing the correct parameters. ...........download
39.  Count Lines of Code in any Application or Module: This application will count the number of lines of code in Visual Basic projects as a whole or any selected modlue (.frm, cls, .bas, .dsr, etc.). ...........download
40.  Count Number of Times Program Was Launched Using .INI Files: This is an example of how to count the number of times your program has been launched. ...........download
41.  Create Shadow Effects using Labels: This form shows you how to create and adjust the angle of font shadows using labels. ...........download
42.  Create a briefcase: Show the dialog to create a briefcase. ...........download
43.  Create a share: Launch the create share dialog. ...........download
44.  CueCat Barcode Scanner-Decoder: This class intercepts and decodes data from the CueCat, a free barcode scanner that can be obtained at Radio Shack and elsewhere.
45.  Current Time-Date: Get the current date and time. ...........download
46.  Customize Standard Open Dialog w- File Preview: This application demonstrates how to ) customize the standard windows File Open Dialog, and ) Add file (text or graphics) preview to the dialog. ...........download
47.  D++ Language with Compiler: This application a compiler that compiles the D++ language into an execuatable. ...........download
48.  Defy Expiration Dates: Changes the system date to the day after that of a specific file, starts your eval-version application, delays for a user-defined time (-s), then switches back to the current date. ...........download
49.  Delay or Pause execution: subDelay delays for any # of seconds up to one day. ...........download
50.  Demo of Various Techniques for Beginners: This application demonstrates a number of commonly used techniques, including splash forms, progress bars, listing all fonts in a drop-down combo, moving a form without a title bar, popup menus, and the use of control arrays of option buttons in frames. ...........download
51.  Demo of Various Windows and Form-Related Functions: An demo application that shows you how to shutdown windows, keep a form always on top, add a system tray icon, use yes/no message boxes, use popup menus, and more. ...........download
52.  Detecting when Word quits: This piece of code uses WithEvents to detect when Word has been opened and when it has been closed down. ...........download
53.  Determine if the app is running in the IDE: Often a developer needs to know if the app is running from the IDE. Here is a VERY simple way of determining that. ...........download
54.  Disk Copy Dialog: Show the disk copy dialog. ...........download
55.  Display Keyboard States (CapsLock, NumLock, ScrLock): This is a form that checks and displays CapsLock, NumLock and Scroll Lock states every one second. ...........download
56.  Display UNICODE Characters Using MS Forms Object Library: Have you ever wondered of using any language characters other than English in Your Visual Basic Project? Its now possible using UNICODE, no extra font to be installed. ...........download
57.  Easy Way to Insert and Center Text on a Picture: You'll need a picturebox with Autoredraw set to true, a textbox, and a label with Autosize set to true.
58.  ElapsedTime: Count an elapsed time between two times. ...........download
59.  EnhPrint OCX for printing MetaFiles in VB: OCX which creates a EMF-metafile dc class, which can be used by the vb programmer to create, print and/or preview a metafile. Supports gradient fill, text rotation, images. Manual included. ...........download
60.  Enhanced Printer object with Preview v. : Enhanced printer support allowing Font, Alignment (Left, Right, Centre and Full justification) with full word-wrap, Indent Left and Right. ...........download
61.  Error-handling Solution for Enterprise VB applications v : HuntErr version  is a powerful error-handing solution that deals with all kinds of scenariors, including basic error reporting, ADO connection roll-backs and aborting COM+ transactions (though supported, COM+ is not required). ...........download
62.  Fancy UI-Enhanced Form with many Multimedia Features: A fancy form - just for fun. ...........download
63.  FormatAnyNumber: I find it amazing that so many programmers still write CODE to format and unformat numbers in Visual Basic (with STR, LEFT and MID everywhere!), especially when robust functionality is already intrinsic to the language. ...........download
64.  Formatting a date: Insert backslashes into a date. ...........download
65.  Full-Featured Print Preview Dll: RamoSoft Print Preview is a production quality component that can be embedded in your own projects to bring print preview capabilities without third party controls. ...........download
66.  GUI Template For an Application Updater: This is a GUI for an update such as a service pack or a addin. I did not write any code for an update, just the template. This is just a sample. ...........download
67.  Get a list of SQL Servers on the network: This tip shows you how to retrieve a list of SQL Servers on your local LAN. ...........download
68.  Get the number of working days: Calculate the number of working days between two dates. ...........download
69.  Get the time and date after a period of time: Function returns the time and date after the number of seconds supplied to the function. ...........download
70.  Get_Printer_Orientation: Returns the current printer orientation. ...........download
71.  Golf StableFord Points Calculator: Works out the stableford score received when given the score, par,stroke index and handicap. Can be modified to accept an array, rather than one at a time. ...........download
72.  Graphically Design Message Boxes in the IDE: This is an add-in that allows developers to graphically design message boxes, as opposed to writing the code for them. ...........download
73.  Help_Contents: Displays the 'contents' page of a help file automatically!. ...........download
74.  HextoDec Function: This function converts a hexadecimal value to a decimal value. ...........download
75.  HideProgramTitle: Hides the title of your program in the Ctrl+Alt+Delete window in just one line of code!. ...........download
76.  How to add hours and minutes: This code deals with how to add hours and minutes. For example: : + :=: ...........download
77.  Implement a Custom Callback Scheme for Client and Server Objects: This application implements a proprietary callback scheme using two Interfaces defined within VB. ...........download
78.  InString: Learn how to use the instring capability. ...........download
79.  Inheritance and Polymorphism in VB-Demo Application: This is an excellent application to review in order learn the basics of the object-oriented principles inheritance and polymorphism, both in terms of what they are and how to implement them in VB. ...........download
80.  Integrate Plug-Ins in Your Applications: The following demo is a great example (in my opinion) of how to integrate custom plug-ins in your VB program, by using ActiveX DLLs. ...........download
81.  Is a date at the weekend: Check if a date is a weekend. ...........download
82.  IsIn: Have you ever been bemused by VB's lack of an 'inline' IN function operating in much the same way as in SQL ? This function compares a value with a ParamArray of values, returning a boolean having completed the compare or finding the desired value. ...........download
83.  IsWorkHour: Checks the working hour using user-specified disable-enable time. ...........download
84.  Label Creator and Printer (uses Active Reports): This .dll allows you to create and print many Avery and Maco labels...and even design your own custom labels...........download.
85.  Leading Upper Case: Automatically generate an upper case at the start of or after a space in a text box. ...........download
86.  Licence Mailslot: Now this sample will protect your software of beiing running more than the maximum user licence your software allowed. ...........download
87.  Linked List Class: Maintains a linked list (Collection wrapper) . ...........download
88.  ListBox Functions: A few ListBox Functions. ...........download
89.  ListView Functions for lvwReport Views: ListView Functions for lvwReport Views . ...........download
90.  Load fonts into a list box: Loop through the Screen.Fonts collection and write the font names into a list box...........download.
91.  Make A form Transparant: Makes A form Transparant: quick and simple. ...........download
92.  Manage a share: Show the manage a share dialog. ...........download
93.  Manipulate the font settings of a control: This time change the font properties of a control. ...........download
94.  Map network drive dialog: The WNet API calls are very useful for carrying out network operations. For example, the WNetAddConnection and WNetCancelConnection deal effectivly with network drive connections. ...........download
95.  Message Box builder: Corrected the tab oder, redid the layout, and added simple tooltips. ...........download
96.  Microsoft BizTalk Server  Documented- Sample Chapter: This is Chapter  from the book Microsoft BizTalk  Documented(.pdf format) from Microsoft Press. ...........download
97.  Mouse Pointer Class: Have you ever called a function which sets the hourglass cursor and calls a second function which also sets an hourglass... and then that second function turns the hourglass off, but your first function hasn't completed yet? Here is an easily implemented class (and very small) which manages your mouse pointer by using an internal counter. ...........download
98.  Move a form by the Arrow keys instead: This will let you move a form based on the Direction of the Arrow key you press. ...........download
99.  Moving and Setting Mouse Position Programatically: Setting the mouse position seems to be more difficult than reading it. Nevertheless, here are a few examples of moving and/or setting the mouse position programatically. ...........download
100.          ObjectViewer-View any COM objects Properties in a Treeview: This dll will take a COM object and show you all its properties in a tree view control with its property name and value. ...........download
101.          Open Code: This code will open a file selected by the user...........download.
102.          Open File Dialog: Show the open file dialog. ...........download
103.          PRNG - Random Number Generator: Passes the DieHard and ENT randomness tests. ...........download
104.          Paladin: Paladin is an add-in for Visual Basic  that comments out the selected code, or uncomments it out if already commented. ...........download
105.          Parsing Strings: A new improved, string parser. ...........download
106.          PassArrayByValue: This tip/trick can be used to pass an array to a function/ procedure by value. ...........download
107.          Password Viewer (Shows the REAL text in a password box): This program shows you the REAL password in other running applications, instead of the ***** you normally see. ...........download
108.          Pause Program: It pauses your program but the other can keep on working...WITHOUT API. ...........download
109.          Print # Function: A documented problem and fix with the Print function. ...........download
110.          Print Preview Demonstration: Despite the constraints, one can provide print preview facilities in VB. This application shows how. ...........download
111.          Print Preview OCx: Like the project at ...........download http://www.freevbcode.com/ShowCode.Asp?ID=, this .OCX offers print preview capabilities for your applications. ...........download
112.          Print dialog: Show the print dialog. ...........download
113.          RBG() Function in Reverse: RBG function in reverse. ...........download
114.          Random Numbers: Generate some random numbers. ...........download
115.          Randomizer: Provide true randomization. ...........download
116.          Recording Errors: A useful error writing function. ...........download
117.          Remove unwanted characters: Perform some useful validation on string...........download s.
118.          Resizer Reupload: This class resizes ALL the controls on a form in just two lines of code. ...........download
119.          Resource File Access Class: Access -bit windows resource (.res) files with a single line of code. ...........download
120.          Rich, Multipurpose Library for VB: The purpose of this library was the enrich VB language and environment. ...........download
121.          Richtextbox - new functionality: Show some new functionality of the Richtextbox control. ...........download
122.          Rijndael AES Block Encryption Demo (VB-ASP): This .zip file contains a VB project with a VB class that implements the Rijndael AES block encryption algorithm. ...........download
123.          Save Code: This code is simple code that will save a file and that works every time. ...........download
124.          Search and highlight a string in a textbox: This code will take a searchstring and a textbox, search the textbox, when the word is found, it will highlight it. ...........download
125.          Share data between any number VB/VBA apps with out using DDE, Files...........download
126.          Sub-classing, and/or Automation: Share data between any number VB/VBA apps with out using DDE, Files, Sub-classing, and/or Automation. ...........download
127.          Shortcut Maker (without VBSTKIT): Here is a way to make real shortcuts wherever you want them without having to use VBSTKIT. ...........download
128.          Simple Full Screen Splash Screen: This code will enable you to generate a full screen splash screen using an image. ...........download
129.          Simple String Replace Function: Replaces specified text within a string. ...........download
130.          Simple collision detection: Tells you if two rectangular areas overlap each other. ...........download
131.          Simple encryption code: Simple encryption code with private and public key. ...........download
132.          Simulate ReDim in a nested array: I've found that it is not possible to directly ReDim an array within an array using a constuct like "ReDim aMyArray()()"............download
133.          SkinFormWithMenu: Skin Form With Menu. ...........download
134.          Sleep Function: Get QB Sleep function in VB ,this is more flexible. ...........download
135.          Sort&Search DLL&TLB: No longer code all your sorts by hand. Contains a VB Extension DLL to reduce your work...........download.
136.          SortFlex: Handle the sorting of a MSFlexgrid by only one sub-routine. ...........download
137.          StopWatch Class Module: I bet you're one of those programmers that want to time something in your code, aren't you? Well, with this code you can!. ...........download
138.          Swap Data Between Variables of Different Types: This module just shows some simple yet hopefully inspiring things you can do with the CopyMemory (or RtlMoveMemory) API call. ...........download
139.          System Info Class Module: A Combined Class of much info on windows. ...........download
140.          Text Autocomplete Add On(DataBase Autocomplete): AutoComplete Text Boxes for DataBase applications. ...........download
141.          This: Some programming environments allow the use of a pronoun to represent a particular object- much like using "Me" in VB. ...........download
142.          Timed Message Box!!! (BUG FIXED) Must See: Must see!!! Show timed MessageBox in your application. ...........download
143.          ToRoman (Make Integer into a Roman Numeral!): This function will convert a Integer into a Roman Numeral!. ...........download
144.          TreeView Search Parent and Child: The purpose of this code is to allow a user to search a treeview for a node. ...........download
145.          Two Dimensional Array Sorting: A class library with one public array sorting function and four supporting private functions. ...........download
146.          Ulli's Source Code Comparator (updated): This AddIn compares the source code in the VB IDE with the source code that was last saved and shows the differences. ...........download
147.          Ulli's VB Code Formatter: This Add-In will format your code for a generally accepted indentation - one tab per structure level. ...........download
148.          Ulli's VB Cross Reference AddIn: This Add-In creates a Cross Reference Listing for your VB Projects. ...........download
149.          Ulli's Warning AddIn: One thing that Microsoft forgot... This little AddIn warns you when your project needs saving. Simply compile the DLL into your VB folder. ...........download
150.          Unlimited Timer: Creates a timer that is unlimited in length. ...........download
151.          Unload all forms: Unload all forms. ...........download
152.          Unlock Internet Explorer In Windows : In the enterprise enviroment they use a Policy Editor to establish a group policy to control your desktop computers on the network. I like listening to WEB Radio and access to assorted web sites they the SysAdmin types keep you from getting to via the the Regisrty setting of your computer during startup AND during a refresh of your registry at times they determine. ...........download
153.          Updated - Gaming LED.ocx digital counter: *Updated* This is a simple LED digital counter, put into an .OCX [Code Included]. ...........download
154.          Upgrade Your Applications Over a Network...QUICKLY: Checks the version of an executable on your system versus a # in a text file. ...........download
155.          User Drawn Menu Class Version : This class allows you to replace the standard Visual Basic menu with one that supports many more features. ...........download
156.          User Drawn Popup Menu Class: This class allows you to build popup menus with multiple submenus without using the form's menu editor. ...........download
157.          Using Controls: This is a programming techniqe. ...........download
158.          Using the Format() command: This is just a simple example on using the Format() command. ...........download
159.          VB Code Overview: This program is a much better alternative to VBs bookmarks. ...........download
160.          VB Database Reporting Tool: AB Report is another database reporting tool for vb developers. ...........download
161.          VB Helper Add-In-Numerous Tool-Utilities for the IDE: Tools and Utilities for the VB Developer. ...........download
162.          VB Popup Option Form: This Visual Basic  project demonstrates a very quick, very simple, boolean Option Form. ...........download
163.          VB Project Line Counter: This is a simple program i wrote because the Visual Basic IDE can't count how many lines of code a project has. ...........download
164.          VB Functions: It's the new functions that have in VB and not in VB.. pretty useful.. ...........download
165.          VBAddOns: VBAddOns :- A small (today) library of useful classes, worth adding to VB. ...........download
166.          VC++ Style Project Explorer Add-In: Acts as a C style project explorer for the active VB project. ...........download
167.          VarHelper: This is simply addin wich enumerate all code for variables. ...........download
168.          VarHelper Alpha : This is second version of VarHelper Addin. ...........download
169.          Variant FIFO Unlimited: I couldn't find any real good FIFO code so i decided to write a simple small Fifo Code that allows Almost Unlimited Amount of Queue space. ...........download
170.          Version : Cool Message Boxes: This code demonstrates the use of hooks in a message box. ...........download
171.          Visual Basic Add-In To Simplify Zipping Projects: This is an add-in for VB  (theoretically should compile in VB but not tested) that provides a simple way for you to zip up your project files. ...........download
172.          Visual Basic Template Manager : Visual Basic Template Manager  can be used to help make those forms that you use all the time easier to access. ...........download
173.          Visual Notepad: A VB-AddIn Utility. Multiple Note(Scratch) Pads. ...........download
174.          VoiceAction- A Simple Speech Recognizer Control: This is a simple speech recognizer OCX. You can add voice commands in any langauges and store them as frequency patterns to disk (Add them via the control interface). ...........download
175.          Warlox String Functions: Using no APIs this module contains a few very useful functions for manipulating strings. ...........download
176.          WhatShift: Replaces "Three boolean functions to find if it is morning, afternoon or evening"............download
177.          WoW Bas File: The WoW Bas File Has Options For MSN Messenger, MSN Gaming Zone, And MoRE!!! Have Fun With It, And PLEASE Do NOT Take Full Credit For My Coding. ...........download
178.          Working hours counter till the end of the Day,Week: It counts how many ; Days, Hours, Minutes, Seconds. ...........download
179.          cEdit-Opensource Freeware Code Editor: cEdit is a freeware opensource code editor designed to be a solid base for other developers interested in creating their own code editor. ...........download
180.          load file to listbox: load file to listbox. ...........download
181.          modEnhListView_Find: Finds items in a ListView over multiple SubItems.
182.          sDoSoundex: This is a revised coding of the SOUNDEX function. ...........download