Category Archives: Microsoft

Don’t delete, Recycle

The default behavior when deleting files from within your VB program is to do just that: delete the file. Using this function instead will send the file to the Recycle Bin. Attachments File Uploaded Size 899-20170820-071434-SHFILEOP.ZIP 8/20/2017 7:14:34 AM 2919

Document/URL Viewing

How to run file associations, such as the default browser. Automatically run the correct program by “running” the document or URL.  Attachments File Uploaded Size 899-20170820-070022-SHELLEX.ZIP 8/20/2017 7:00:22 AM 1111

Animated Cursors

How to load an animated cursor for use in your VB app. Attachments File Uploaded Size 899-20170813-113035-SETCURSR.ZIP 8/13/2017 11:30:35 AM 2314

Text Search

How to search across directories for a file containing specific text. Uses a recursive technique to search sub-directories (similiar to the Windows Find utility). Also shows how to properly cancel a long routine. The recursive procedure is similiar to the DirView sample but uses slower VB directory changing and searching methods rather than API functions. Attachments File Uploaded… Read More »

Screen Background

How to create a Form that has the Windows Desktop as the background. This program makes it appear as though the Windows Desktop is still running, but it actually copies the image of the Desktop to an Image control that is used as the Form’s background.  Attachments File Uploaded Size 899-20170813-112705-SCRNBACK.ZIP 8/13/2017 11:27:05 AM 2393

StatusBar Panel

How to use any color or font in a StatusBar panel. Attachments File Uploaded Size 899-20170813-112548-SBPANEL.ZIP 8/13/2017 11:25:48 AM 1904

RichTextBox Scrolling in VB6

How to create a “chat” style window. This sample duplicates the functionality of a window such as those in mIRC – where text is added to the bottom of a RichTextBox and is scrolled into view IF the scroll bar is at the bottom, but doesn’t move the window when the user has scrolled up.  Attachments File Uploaded… Read More »

RichTextBox Position

How to make the RTB caret follow the cursor. Shows the current row and column below the cursor.  Attachments File Uploaded Size 899-20170813-112215-RTBPOS.ZIP 8/13/2017 11:22:15 AM 2234