Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How to I set the range of a Slider from within my C# code?

Hi,
I am using Measurment Studio 8.0.1 with C# 2005.
 
I need to modify the Maximum and Minimum range values of a slider, depending upon which of a series of Radio buttons is selected. 
The Radio bit I can handle, but I am stuck with the Range bit.
 
The ToolTip says to 'use the constructor'.  The help system says nothing at all.
Can anyone help me out here?Smiley Happy
 
Many thanks
 
JW822179
Live long, prosper and understand Measurement Studio
0 Kudos
Message 1 of 3
(3,510 Views)
A pretty straightforward way (VB2003):
  Slide1.Range = New NationalInstruments.UI.Range(1, 2)

Please don't forget to convert it to C#. Smiley Happy

0 Kudos
Message 2 of 3
(3,495 Views)

Hi,

 

Many thanks for your response.

It is all so easy when you know how!!!Smiley Happy

I now have things working exactly as I want them.

Many thanks

JW822179

Live long, prosper and understand Measurement Studio

 

0 Kudos
Message 3 of 3
(3,488 Views)