VB5/6 Samples

Sample code for VB5/6 (aka VB Classic)


Here are a few small but useful programs and a few that were often asked in the newsgroups.
Unless otherwise specified, all code on this site was authored by myself.
Please let me know if you find any problems or bugs.


A B C D E F G h I j k L M N O P q R S T U V w x y z


Help keep the code flowing!

If you like what you see, please donate a buck or two to the cause. :-)


A

Add Controls at Runtime
Add Controls at Runtime With Events (kind of)
Automatically Switch Tabs (SSTab)


B

BuddyControl


C

Code Printer
ComboBox Mouse Events
Communicate with another instance of your app.
Control Insert/Overtype modes in a RichTextBox


D

Detect FlexGrid Column Resize
Detect Idle and App Auto Shut down
Determine if Mouse or Tab key was used to get to a control
Display State of All Keys


E

Enumerate Object Properties


F

Find Controls in a Container


G

Get path to parent
GetWindowRect Example
Gradient Class Module
Gradient Frame Control (GradFrameCTL)


I

InputBoxEX


L

Load controls dynamically and resize an SSTab control


M

Mouse Events from a Masked Edit Control


N

Network Performance


O

Open CommonDialog in Large Icons or Details View


P

Pick List
Progress Bar Colors
Progress Bar In Status Bar
PictureBox In Status Bar


R

Registry Search Using RegObj.dll
Replace DirListBox control with Treeview.


S

Screen Capture, Print and Save
Selecting a Printer
Spy++ Settings Manager - Uses RegObj.dll
Super Container


T

Toggle Num, Caps and Scroll Lock keys
Transparent Frame


U

Use the Implements keyword to Share Events


V

Version Information