Category Archives: PSC Archive

Get Window Handles – VB4 Version

How to retrieve window handles without subclassing. Fills a ListBox with top level parent window handles and titles. Another ListBox is filled with all window handles and titles. Also show how to terminate a process.  Attachments File Uploaded Size 899-20170725-084851-GETWHWND.ZIP 7/25/2017 8:48:51 AM 2959

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

Data Combo

How to load a ComboBox with data tables and link that to another ComboBox containing fields. Also demonstrates the GetOpenFileName API function – selecting a filename without using the Common Dialog control. Attachments File Uploaded Size 899-20170711-072918-DATACOMB.ZIP 7/11/2017 7:29:18 AM 12988

Basic Encryption

How to encrypt INI and data files. Includes 3 functions for data encryption. Uses a derived key XOR. Attachments File Uploaded Size 899-20170704-073351-CRYPT.ZIP 7/4/2017 7:33:51 AM 2788

Copy Typing

How to duplicate text entry in a separate control. Copies your keystrokes from one TextBox to another as you type. Attachments File Uploaded Size 899-20170703-101920-COPYTYPE.ZIP 7/3/2017 10:19:20 AM 1361

Cool Toolbars

How to implement “cool tools” style toolbars. Shows how to create Internet Explorer-like “cool tool” buttons without the need for any custom controls. Shows how to detect when a mouse moves over, then off a control. Attachments File Uploaded Size 899-20170626-072157-COOLTOOL.ZIP 6/26/2017 7:21:57 AM 6628

CoolMenu

How to popup a menu as the mouse moves over a hotspot. This sample is sort of a combination of the PopHwnd and CoolTool samples. It destroys and pops up menus as the mouse moves over a hotspot on a “toolbar”. The application is hooked before PopupMenu is called so that the handle (and thus the RECT) of… Read More »

Compare Window Handles

How to enumerate all window handles. Fills one ListBox with all window handles, titles, and classes. Fills another with any windows not found in the original. Useful for searching out all the windows used by a specific application. Just fill the base, run your program, then find the new ones.  Attachments File Uploaded Size 899-20170622-122053-COMPHWND.ZIP 6/22/2017 12:20:53 PM… Read More »

Close Forms

How to search for a window to close via enumeration. Finds all open VB IDE Form windows and closes them.  Attachments File Uploaded Size 899-20170618-113024-CLOSEFRM.ZIP 6/18/2017 11:30:24 AM 3356