Link to home
Start Free TrialLog in
Avatar of K_man
K_man

asked on

Getting a slide control to update a text box as it is moved

I need to work out some way for a slider control to fire an event as it is moved, I can't seem to figure it out.

Basically what I need to happen is that when they move the slider up or down, it feeds the value into a function : changeToFeet(Metres) which then updates a text box with that value (metres being the value of the slider control), so that when the user flicks the slider about they can see the values in both metres and feet.

Any help would be appreciated

ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Just to clarify... your code block should look something like this...

Private Sub SliderName_Change()
Me.TextBoxName = changeToFeet(Me.SliderName.Value)  
End Sub
Avatar of K_man
K_man

ASKER

Brilliant, thanks a lot for that

Solves some other problems I was having with other controls also

and so easy ! :P

Yeah, once you go beyond the standard Toolbox controls, you move into the area of properties & methods only accessible this way.  Glad I can help.  -Jim