Sample Code 
-
This short snippet of code will return the parent directory of a directory input, or the directory of a filename input.. 
-
Demonstrates some VB code to register your application to automatically startup (in the registry).. 
-
This code will search a folder and all sub folders for a specified file or filter.. 
-
This code will allow you get the free disk space on a drive which is over 2 Gb in size.. 
-
How to load an M3U playlist for use in a media/music program.. 
-
This will allow you to create a Virtual Drive on your computer, making a particular folder appear with its own drive letter.. 
-
Automatically create nested folders using this simple procedure. 
-
Transfer a file over a network with this activeX ocx control. Use this control instead of winsock, and call the upload or download subroutine, its that simple!. 
-
This code will enable your software to create a file/folder shortcut (*.lnk file) using Visual Basic and the Windows Script Host Runtime Library. 
-
A simple color picker and pick-color-by-pixel tool for designers needing RGB or HEX color codes. Now updated to version 3.0. 
-
How to get a file/folder list. 
-
How to load very large files in chunks... 
-
These two routines will scan a path and add files/folders to a treeview control.
It will also scan subfolders.. 
-
SyncDir Class - to synchronise files in two directories. A class module (source) that provides a way of synchronizing files in two folders and optionally their subfolders with matching names.. 
-
This neat ready-to-use code lets you build relative references to files (like the ones used in HTML pages).. 
-
This code creates a folder by giving it the folder's full path. It checks all parent folder(s), and creates them if they don't exists using recursion. Very useful for Setup programs.. 
-
How to join two files together. 
-
An alternative method for creating a shortcut in Visual Basic. 
-
How to retrieve file information such as file size, modified date, and its attributes in VB. 
-
A neat bit of code to load a file into a listbox, and then save it again.. 
-
Some sample code that searches & replaces text in a textbox or file. 
-
A neat module that lets you read and write INI files. 
-
How to open a file, url or email address with its default program. 
-
This trick show you how to add display all the fonts, which you have installed on your system, in a combobox... 
-
How to launch a PC's default browser with ShellExecute API. 
-
How to decipher MP3 Tag information with Visual Basic. 
-
Move files to the Recycle Bin with VB and Windows API. 
-
How to create a directory tree like in Explorer. 
-
How to extract the icon from a file. 
-
How to accurately read text files into ADO recordsets. 
-
Check to see if a file exists. No API's. 
-
How to produce an integrated file, folder and drive dialog box. 
-
How to get the disk capactiy and remaining free space. 
-
How to retreive file attributes (hidden, system etc). 
-
How to prompt for a file to open, and load it into a textbox. 
-
How to prompt for a file to delete, and then delete it!. 
-
A (very) basic HTML editor!. 
-
Read and write to INI files using this module. 
-
How to avoid confusion when evaluating the VBE's code line counts.. 
-
An example network browser. 
-
How to loop through all the files and subfolders contained within a folder. 
-
How to send a file to the recycle bin. 
-
A visual basic module allowing you to convert a formatted RTF file to HTML!. 
-
How to show the Open, Save, Select Color and Print common dialogs.. 
-
How to count the number of lines in a text file. 
-
An example that shows how to display the "Browse for Folder" dialog, and how to retreive "special folder" paths. 
-
How to display the Browse for Folder dialog. 
-
How to clear the recent documents list. 
-
Allows you to copy files to the clipboard just like Explorer. 
-
How to create a shortcut to another file. 
-
How to add a file to the recent documents list.. 
-
How to find the paths of special folders such as My Documents and the Start Menu. 
-
How to load the contents of a file into a text box. 
-
How to add items to a combo box using the contents of a file. 
-
How to save the items in a combo box to a file. 
-
How to display an Open dialog box, without using the Microsoft common dialog control!. 
-
How to display an Open and Save dialog box, without using the Microsoft common dialog control!. 
-
Shorten a file location in a label with .... 