Thank you Luca,
it's a little tricky and I am getting old and can't collect my thoughts quickly..
A progress bar value is from 1 to 120
An image speed needs to be changed from timer interval 240(fastest) down to 10 (slowest) Step -10
The problem: how can I map this to that?
Are you young enough to solve this or I should call Klaus
I'm not sure i understand exactly what you are trying to do.
From what you wrote, if the highest speed is 240 and the decrement step is -10 then, if you divide 240/10 you have 24 steps.
In the timer, if the value of the progressbar is 1 then 1 = 240, 2 = 230.
in other words you could do something like this
Timer1_Tick
dim val as int
dim speed as int
val = progressbar.value
speed = 240 - (val*10)
End Sub
I don't know maybe i'm hearing voices.
Walter