Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing range in code for a numeric edit control.

Is it possible to change the min and max range of a numeric edit control in code? Does anyone know how to do this. I am using C#.
Thanks,
Barry
 
0 Kudos
Message 1 of 2
(3,062 Views)

Create a new instance of the Range class with your updated minimum/maximum and assign it to the NumericEdit.Range property.  For example:

numericEdit1.Range = new Range(0, 100);

- Elton

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