Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27350

Graphical Analog gauge?

$
0
0
I am looking to design a custom analog gauge and need a bit of help since I am quite a bit rusty in VB since the last time I used VB was when VB6 was new :) To make things as simple as possible, I would like to put the gauge code into a function and call the function when a new value is to be shown on the gauge. Example : " point_to_value(640) ". The gauge face will be a custom image that I will create using Photoshop and the needle will also be custom as well. Since both will be graphics, I know I will probably have to put them into a PictureBox and rotate the needle in some way. I will also have to put numbers on the gauge using code since the range will also vary from say 0 to 100 or from 100 to 10000. The numbers will have to be put at specific x/y axis, but I think I could figure this out...I hope.

So to begin....
Any tips on how to rotate the needle? I will have to specify a specific rotating axis so the needle base does not move jump around. Trying to figure this part out now.

Also.... Putting numbers on the gauge face with code.... Is there an easier way? Label boxes maybe?

Viewing all articles
Browse latest Browse all 27350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>