Category Archives: Visual Basic 6 (VB6)

GetDriveType

How to retrieve drive types (CD-ROM, Removeable, Network, etc…).  Fills a ListBox control with drive letters and types.  Attachments File Uploaded Size 899-20170725-084650-GETDRVT.ZIP 7/25/2017 8:46:50 AM 1302

Flicker-Free Animation

How to animate transparent images without flicker. Extensive comments in the sample explains how it all works. Attachments File Uploaded Size 899-20170724-191508-FLICKER.ZIP 7/24/2017 7:15:08 PM 17609

Font Alignment

How to align fonts along a baseline. When printing different point sizes of a font using VB’s Print method, they default to aligning at the top of the characters rather than on a common baseline. This sample shows how to properly align them. Works for the Form, PictureBox, UserControl, and Printer objects.  Attachments File Uploaded Size 899-20170724-191735-FNTALIGN.ZIP 7/24/2017… Read More »

Flat Headers

How to use flat, non-clickable headers with the ListView control. Give your listboxes a little more modern look. Attachments File Uploaded Size 899-20170723-073320-FLATHEAD.ZIP 7/23/2017 7:33:20 AM 2144

Find a File with VB6

How to find files via recursive directory searching. Uses a recursive procedure to find files that match your search and path entries. Also contains functional equivalents of InstrRev, Split, and Replace functions for earlier versions of VB.  Attachments File Uploaded Size 899-20170723-072801-FINDFILE.ZIP 7/23/2017 7:28:01 AM 4475

Return Error Level

How to return an error level to a batch file. This is a good way to hand off processing from a batch file, to an executable, and back again, performing rudimentary sharing of information. For example, you could have an automated task that runs a batch script to, say, get some files from a remote location. Then execution… Read More »

Exe Names

How to retrieve the EXE filenames of running processes Attachments File Uploaded Size 899-20170720-073407-EXENAME.ZIP 7/20/2017 7:34:07 AM 1520

Dynamic Menus

How to dynamically fill a menu. Select a Drive letter and a menu is filled with directories. Select a menu item and a ListBox is filled with files and directories from that selection. Attachments File Uploaded Size 899-20170719-075646-DYNAMENU.ZIP 7/19/2017 7:56:46 AM 1770

Edge Scan

Scan for the edge of a bitmap to create a transparent region. Scans the edge of a bitmap and creates a polygon region. Use it to create odd-shaped forms. It does not scan for “internal” transparent areas – only the edge. The background color needs to be unique. Also shows how to allow form dragging without a caption. … Read More »