Here's a simple Visual Basic program I wrote back in June 2005 called "Form Size Finder". I originally wrote this because I wanted to make a program that was the exact same size as another program I was using and I didn't know how to find the original program's width and height. This program is composed of a small form you drag around the screen and resize. As you do so it gives you detailed information about itself including it's width, height, and corner coordinates. To match another program's dimensions, you would simply open it up, overlay it on top of the program you want to know the size of, and then resize it to the other program's exact dimensions. Even if you don't use it for it's intended purpose, I think it still may be useful to Visual Basic beginners to see how "Always on top" works, how to drag a form around by clicking on it's body, how to use the StatusBar and SpinButton controls, and how to use the SetWindowPos, GetCursorPos, GetWindowRect, ReleaseCapture, and SendMessage Win32 API's.
Mar 10

Recent Comments