When typing into NumericUpDown or any other UpDownBase-derived class the underlying (i.e. data bound) value will be updated too frequently causing too many updates and potentially interfering with higher-order parser logic.
Fix:
Change the call inside the UpDownBase class:
```
protected override void OnTextChanged( string oldValue, string newValue )
{
if( this.IsInitialized )
{
SyncTextAndValueProperties( true, Text );
}
}
```
to
```
SyncTextAndValueProperties( false, Text );
```
The underlying value will be still updated on pressing Enter or one of the Up/Down buttons or when leaving the TextBox.
Comments: ** Comment from web user: BoucherS **
Fix:
Change the call inside the UpDownBase class:
```
protected override void OnTextChanged( string oldValue, string newValue )
{
if( this.IsInitialized )
{
SyncTextAndValueProperties( true, Text );
}
}
```
to
```
SyncTextAndValueProperties( false, Text );
```
The underlying value will be still updated on pressing Enter or one of the Up/Down buttons or when leaving the TextBox.
Comments: ** Comment from web user: BoucherS **
Hi,
Please set the Property "UpdateValueOnEnterKey" to "true" in order to sync the "Value" and "Text" properties on "Enter" key or LostFocus.