Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Unassigned: DateTimeUpDown crash when using mouse wheel in v3.0 [22446]

$
0
0
Crash: the object with null value must have a value

reproduction:
select the ":" in the DateTimeUpDown. Then scroll with your mouse wheel.

Fix:
I fastly fixed it by adding in Method private void Increment( int step ) of DateTimeUpDown.cs:

I put a:
```
if (newValue != null)
{
...
}
```

around
```
this.TextBox.Text = newValue.Value.ToString(this.GetFormatString(this.Format), this.CultureInfo);
```

Because newValue is null at this place, because UpdateDateTime will not increment, because the double point it's not a real date value.
Comments: ** Comment from web user: BoucherS **

Hi,

This crash does not happen in v3.2 and up.

――――
_Get more controls, features, updates and technical support with [Xceed Toolkit Plus for WPF](https://wpftoolkit.codeplex.com/wikipage?title=Compare%20Editions)_


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>