The slider has a maximum value which is an integer, and you can set it to
whatever you want. So, to create a simple example, if you're talking
percentages or decimal numbers, you could set a value of 100 for the maximum
value of the slider. Each unit would evaluate to 1 percent (or 1/100) of the
total, or in decimal, 0.01. So, if you set the slider to 25, that's 25% or
0.25.
--
HTH,
Kevin Spencer
Microsoft MVP
Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
"S Moran" <s@moran.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
c# 2.0
windows form with a slider control. trying to make the form opacity change
as the slider is moved. problem (i think) is that the opacity property
takes a percent-based number. so... 50% if you do it at design time, but
.5 if you do it via code... but the slider increments in whole numbers so
i guess i have to convert somewhow? an example would be appreciated
thank you