Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the slider extremes programmatically

I haven't found the manner programmatically change CWslider minimum and maximum values in VB, as usually there are member variables for changing min and max in different sliders.
0 Kudos
Message 1 of 2
(2,954 Views)
The max and min and other scaling properties are on the Axis sub-object of the slide. So, if CwSlide1 is your CWSlide object, you could do the following to set the range to [-10, 10].

CWSlide1.Axis.Minimum = -10
CWSlide1.Axis.Maximum = 10

David Rohacek
National Instruments
0 Kudos
Message 2 of 2
(2,954 Views)