
How to synchronize 2 slider controls?
Private Sub Slider1_Scroll()
Slider2.Value = (Slider2.Max - Slider2.Min) / (Slider1.Max -
Slider1.Min) * Slider1.Value
End Sub
Mikhail Berlyant
Data Integrator, Data Systems
Launch Your Yahoo!Music Experience http://launch.yahoo.com
Brainbench MVP for Visual Basic www.brainbench.com
Quote:
> Hi,
> I am trying to synchronize 2 slider controls, set up as follows:
> Slider1.Min = 1
> Slider1.Max = 300
> Slider1.SmallChange = 1
> Slider2.Min = 1
> Slider2.Max = 900
> Slider2.SmallChange = 1
> When I move "Slider1" I want "Slider2" to move in proportion so that they
> both get to there max value at the same time.
> I'm sure there's an easy way to get this to work, it's been a long
day!!!!!!
> Is this possible?
> Thanks in advance.
> Ian