Slider bar

  • Thread starter Thread starter Dale Fye
  • Start date Start date
D

Dale Fye

I just had a client ask if I could add a slider bar next to a textbox, so I
added the MSComctlLib.Slider.2 control to my form.

Interestingly, this slider does not have a control source, so I have to set
its value programmatically. And since it is not bound, it doesn't have
Before and After Update events, so I have to use the Exit event to change the
value of the textbox, which is kind of awkward, since the value in the text
box doesn't change until the user goes to another control on the form.

Does anyone know of a bound slider control I could use?
 
Bill,

I just figured this out.

Although the slider control only contains 5 events in the properties window
of the form designer, if you go to the VB Editor, select the control in the
dropdown and then expand the events, there is a Change event which I can use
to accomplish what I was doing in the sliders Exit event. This is cleaner,
but still not nearly as good as if you could bind the control to a field.
 
By quirk, do you mean the visibility of only a few of the events in the
properties window?
 
Back
Top