User Drawn Analog Meters with no OCXs or APIs

Max Seim

Version Compatibility: Visual Basic 5

More information:
Allows you to create your own analog meters using MSpaint. These images become the meter face. Use the (analogmeter) subroutine to draw the hand (needle) automatically scaling the needle to the size of the Picture Box and position the needle to the engineering unit (value) you wish to display.

Movement is smooth. You can also vary the needle width, color, and needle length. All of the meter attributes are sent to the subroutine with each update, allowing the needle color, (for example)to change as a value increases.

Using the Picture Box's Picture property, you can even load in a different meter face during runtime. Everything is done via the Picture Box's Line Property.

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.