Category Archives: PSC Archive

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

How to center a common dialog

Responds to the WM_INITDIALOG message to center the Common Dialog Control on a form. This sample uses a derivative of the technique created for the Windows Styles article in Visual Basic Programmer’s Journal. Uses the following API functions: Attachments File Uploaded Size 899-20170609-062808-CENTRDLG.ZIP 6/9/2017 6:28:08 AM 3467

INI Tutorial

This is a short tutorial piece of code that shows how to work with INI files. It demonstrates how to open and read INI files, as well as create and/or write to INI files.  This allows you to have your program save settings for the next run. Attachments File Uploaded Size 898-20170603-152316-INITutorial.zip 6/3/2017 3:23:16 PM 3068

Extended Color Constants

Get some extended color constants. Stuff like vbWhite, vbBlue are great, but even better is vbDarkGreen, vbPaleBlue etc… Original Author: CodeJack Assumptions I ran across this little tid-bit and thought it would be usefull to others. I can’t remember where I got it, but I’ve had it for a looonggg time. Code Public Enum exColorTypes ‘vbWhite = &HFFFFFF… Read More »