File Routines
Updated Monday December 26, 2011
   
Category
Topic
Combining
vb6
vb5
vb4-32
Pure VB: Combine a Picture and Text into a Single File
Simple code by Larry Serflaten to combine a text and image into a single file.  May 07.2000

Pure VB: Combine Multiple Elements into a Single File
Extending the above, this combines an image and the contents of three Rich Text controls into a single file. May 07.2000



Directories
vb6
vb5
vb4-32
CreateDirectory: Creating Nested Folders
Two methods to created a nested hierarchy of folders for vb4-32, vb5 and vb6. Sept 19.1998


Drag & Drop
vb6
vb5
vb4-32
DragAcceptFiles: File Drag/Drop in VB
APIs to turn a list box into a drag-drop receptacle (non-OLE).


INI Files
vb6
vb5
vb4-32
vb4-16
vb3
WritePrivateProfileString: Create the 'Kidz Quiz' project
Code to create a child's quiz application, easily extended to cover adults. Aug 24.1999

GetPrivateProfileString: Parse IE Favourites Information
Extracting the shortcut name and URL from an IE Favourite. Mar 09.2000

WritePrivateProfileString: INI Files - The Basics
Primer on saving and reading data from private ini files. Aug 13.1999

WritePrivateProfileString: INI Files - Saving Entire Sections
INI section manipulation - saving and restoring an entire list from private ini files. Aug 13.1999



Multiple Files
vb6
vb5
vb4-32
Pure VB: Retrieve Multiple Filenames from the Common Dialog Control
Code to extract the filenames returned from a standard VB File Open Common Dialog under Win32/VB4-32, where the application is providing the common dialog with both cdlOFNAllowMultiselect and cdlOFNExplorer specified. For vb4-32, vb5, vb6


Random Access Files
vb6
vb5
vb4-32
SetEndOfFile: Delete Records from the End of a Random Access File
Use SetEndOfFile to truncate records from a random access file.  Jan 30.2006


 

 
 

PayPal Link
Make payments with PayPal - it's fast, free and secure!

 
 
 
 

Copyright 1996-2011 VBnet and Randy Birch. All Rights Reserved.
Terms of Use  |  Your Privacy

 

Hit Counter