cancel
Showing results for 
Search instead for 
Did you mean: 

Changing range in code for a numeric edit control.

Highlighted
BarryGA
Member

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
 
1 REPLY 1
Elton Wells
Active Participant

Re: Changing range in code for a numeric edit control.

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