DateTimePickerControl Exception Scolling with Arrow-Key
Posted: Wed Jan 31, 2018 3:07 pm
I am using a DateTimePickerControl in a Form with Custom Format "MMMM yyyy".
If I use the up and down arrow-Key to scroll month up and down, this exception appears:
System.ArgumentOutOfRangeException: Die Parameter "Year", "Month", und "Day" beschreiben eine nicht darstellbare DateTime.
bei System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day)
bei System.Windows.Forms.DateTimePicker.SysTimeToDateTime(SYSTEMTIME s)
bei System.Windows.Forms.DateTimePicker.WmDateTimeChange(Message& m)
bei System.Windows.Forms.DateTimePicker.WmReflectCommand(Message& m)
bei System.Windows.Forms.DateTimePicker.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Geladene Assemblys **************
mscorlib
Assembly-Version: 4.0.0.0.
Win32-Version: 4.7.2563.0 built by: NET471REL1.
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll.
----------------------------------------
Is there a bug in Version 2017.01.10.00?
Thank you
If I use the up and down arrow-Key to scroll month up and down, this exception appears:
System.ArgumentOutOfRangeException: Die Parameter "Year", "Month", und "Day" beschreiben eine nicht darstellbare DateTime.
bei System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day)
bei System.Windows.Forms.DateTimePicker.SysTimeToDateTime(SYSTEMTIME s)
bei System.Windows.Forms.DateTimePicker.WmDateTimeChange(Message& m)
bei System.Windows.Forms.DateTimePicker.WmReflectCommand(Message& m)
bei System.Windows.Forms.DateTimePicker.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Geladene Assemblys **************
mscorlib
Assembly-Version: 4.0.0.0.
Win32-Version: 4.7.2563.0 built by: NET471REL1.
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll.
----------------------------------------
Is there a bug in Version 2017.01.10.00?
Thank you