Posted on 2003-02-22
This is simple math question (I stink at math)
I'm adding translucency to my application, and I want to use a trackbar or dropdown to let the user select the visibility of forms in the application.
I set the max on my trackbar to 255 and when you slide it the translucency changes on the form.
255 is 100% visible, 0 is 0% visible.
What I want to do is put the percentage of visibilty into an integer so I can display it on a label or something, indicating what "percentage of visibilty" the form has.
Also, I'd lide a way to calculate all the in-between percentages, just in case I decide to go with a dropdown.