Category Archives: Visual Basic 6 (VB6)

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

SimplePing Demo

This is a demonstration on how to use the SimplePing function described in this article. There is not much to it, but it shows how to send an ICMP echo request (ping) to a remote IP address, and determine if the host is responding. Based on the return from the SimplePing function, the appropriate message box is displayed on… Read More »

Simple Clock

Shows how to create a simple one-form analog ‘clock’ application, using SIN/COS functions with Shape and Line controls. Attachments File Uploaded Size 899-20170616-074424-CLOCK.ZIP 6/16/2017 7:44:24 AM 1763

Clipboard Viewer

How to write a clipboard notification program. The TextBox and PictureBox on the Form automatically change anytime new text or compatible images are copied to the clipboard from any application. Attachments File Uploaded Size 899-20170615-085712-CLIPVIEW.ZIP 6/15/2017 8:57:12 AM 2536

Class & Text Spy

How to view the Class name and Text of any window. Uses a Timer to retrieve the mouse position and the window handle beneath the mouse. Displays the window handle, class name, and text (if any). Attachments File Uploaded Size 899-20170613-102944-CLASSSPY.ZIP 6/13/2017 10:29:44 AM 1761

ChooseFont Dialog

Shows how to display the Font dialog without using a control. Uses the ChooseFnt API function to display the Font dialog. Use this method if you don’t want to install the Common Dialog Control.  Attachments File Uploaded Size 899-20170611-055319-CHOOSFNT.ZIP 6/11/2017 5:53:19 AM 2974