Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Set increment of NumericEdit from measurement studio in C# winform

Solved!
Go to solution

Hi All,

 

Can anyone suggest a way to set the increment/decrement value using NumericEdit when clicking the up/down arrows? 

The default value is 1. What if I want to set it to 0.1?

 

Thanks,

Elliot

0 Kudos
Message 1 of 6
(1,787 Views)

You can use the CoercionInterval property to change the increment.

~ Paul H
0 Kudos
Message 2 of 6
(1,766 Views)

I tried "CoercionInterval" and set it to 0.1

 

this.NumericEdit.CoercionInterval = 0.1;

 

However, the increment/decrement is still 1 when I click it at UI.

0 Kudos
Message 3 of 6
(1,741 Views)

I tried "CoercionInterval" and set it to 0.1

 

this.NumericEdit.CoercionInterval = 0.1;

 

However, the increment/decrement is still 1 when I click it at UI.

0 Kudos
Message 4 of 6
(1,730 Views)
Solution
Accepted by topic author Elliot_Elep

Strange that setting the property in code did not work for you . . . the only apparent difference was I set it from the property grid (though that just does the same setting in code in the .Design.cs file):

phansen_0-1667579370410.png

Are you setting CoercionInterval anywhere else, perhaps?

~ Paul H
0 Kudos
Message 5 of 6
(1,721 Views)

Find the root cause.

 

My numeric edit is "sourced" to a slide. BOTH slide and numeric edit should set the CoercionInterval to 0.1.

 

Thanks for your help!

 

 

Message 6 of 6
(1,706 Views)