VB 6 Sample Code
-
Special Folder Paths
by James Crowley
How to find the paths of special folders such as My Documents and the Start Menu
-
Save the contents of a textbox to a file
by James Crowley
How to save the text in a textbox to a file
-
Replace text in textbox or file
by Mike J
Some sample code that searches & replaces text in a textbox or file
-
Always on top
by James Crowley
How to make a window always appear on top of other forms
-
MP3 Tag information
by ElementK Journals
How to decipher MP3 Tag information with Visual Basic
-
Add Horizontal ScrollBars to a ListBox
by Kym Manson
How to add a horizontal scrollbar to a listbox
-
Add tab spaces in the RichTextBox
by ElementK Journals
Let users add tab spaces in VB's Rich Textbox control
-
Validate email addresses
by Mike J
How to check that a string is a properly formatted email address.
-
Merge Two Files
by Kym Manson
How to join two files together
-
Display animated GIFs in VB
by ElementK Journals
Display animated GIFs in VB using the WebBrowser Control
-
VB Express Color Object to Hex String
by Chris Buske
This function takes one color type variable and returns the hex code in a string.
-
Register Program to Start Up Automatically
by Yew Chin Sing
Demonstrates some VB code to register your application to automatically startup (in the registry).
-
Sending email from ASP.NET
by Orcs Web
One of the most commonly performed operations that I see in web applications - aside from database actions - is sending email from code. This demonstrates how in ASP.NET.
-
Add Quick MP3 Audio Functionality to your Programs
by Cooper Sloan - VB6FREAK
Add Quick MP3 Audio Functionality to your Programs - A tutorial on adding MP3 audio, without the use of the Windows Media Component. Uses MCI, so users of the Multimedia Control should have an idea of what to expect.
-
Create flexible reports with Data Report utility
by S.S. Ahmed
This project will show you how to create reports in VB using the data report utility, this utility is very easy to use and it only takes minutes to create flexible reports using this utility.
-
Get HostName/IP Using API
by Kym Manson
How to retrieve the Hostname and IP Address of your computer using Windows API.
-
Instead of using DoEvents, try doing events!
by ElementK Journals
Why not to use DoEvents!
-
Count Lines in File
by James Crowley
How to count the number of lines in a text file
-
Copy File(s) to clipboard
by James Crowley
Allows you to copy files to the clipboard just like Explorer
-
List Network Computers
by Jonathon Rossi
This source code will show you how to list all the computers on your local network