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

Created 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.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



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