VB 6 Sample Code
-
Simple Key logger
by Jamie Lindgren
I'm working on a real keylogger, and I was researching how to do them, and after a bit of thinking I came up with this code...
-
Get host name from IP address, and vice versa
by James Crowley
Resolve a host name to it's IP address, and an IP address to its host name with this re-usable class module
-
Open a file/url with its default program
by James Crowley
How to open a file, url or email address with its default program
-
Convert RTF to HTML
by Brady H
A visual basic module allowing you to convert a formatted RTF file to HTML!
-
Send & Receive Emails using Winsock and POP3
by Kym Manson
Demonstrates how to send & receive emails from a POP3 server using the Winsock control.
-
Close a message box automatically
by James Crowley
How to automatically close a message box after a number of seconds.
-
Convert Decimal Integer Values to Binary String in VB6
by Alex Etchells
A small function to convert decimal integer values to a binary string. The number of bits can be optionally specified but this will be increased if insufficient.
-
"On Error Resume Next" considered harmful
by Palo Mraz
Discusses some unexpected implications of using the 'On Error Resume Next' statement in Visual Basic applications.
-
Remove the selected items in a ListBox
by Kym Manson
How to remove the selected items in a listbox
-
WinZip Command Line Information
by Mike J
Winzips description to how to use VB with Winzip from the command line
-
Capture Video
by Alex
A simple piece of code that can capture live video from a web cam.
-
Compact & repair MS Access database
by Mike J
Simple snippet of code to compact and repair any MS Access database.
-
Common Dialog Example
by James Crowley
How to show the Open, Save, Select Color and Print common dialogs.
-
Read Registry values in VB without API
by ElementK Journals
How to read Registry values in VB without complex API calls
-
Msgbox Example
by James Crowley
This demonstrates displaying some message boxes using MsgBox
-
Preserve with ReDim
by James Crowley
How to use Preserve and the ReDim statement to resize arrays whilst preserving existing items
-
Output text to a form
by James Crowley
An example of how to 'print' text onto a form.
-
UBound() and LBound()
by ElementK Journals
Using LBound() and UBound() when iterating Visual Basic arrays
-
Counting lines in a multi-line textbox
by ElementK Journals
How to count the number of lines in a multi-line textbox
-
Basic ADODC Example
by Moriel Schottlender
Too all you newbies out there, This is something I wrote for a friend of mine, teaching how to use the basic extraction-from-db utilities. It shows how you can link an Access database using the ADODC Component. It includes thorough explanations and examples. It really is teaching the basics of ADODC components - nothing fancy - I just remembered my own time as a beginner, trying to search for new ways to learn. I hope it will help you :) ~moo