[Mono-bugs] [Bug 383462] DateTimePicker fails if entering year by keyboard

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jun 11 10:41:57 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=383462

User twiest at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=383462#c3


Thomas Wiest <twiest at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                                        |NEW
           Found By|---                                             |Community of Practice
      Info Provider|derekd at omni-ts.com                              |




--- Comment #3 from Thomas Wiest <twiest at novell.com>  2008-06-11 08:41:57 MDT ---
Thanks Derek for the test case! :)

I have confirmed that this bug exists in Mono SVN r105066 on SLED 10 SP2 i586.


Steps to reproduce:
1. Download and compile the test case from comment 2
2. Run the test case
3. Highlight the year
4. Try to type in the year 2009
5. Notice that when you type the "2", you get the exception below


Here is the exception that is thrown:
Unhandled Exception: System.ArgumentOutOfRangeException: value must be between
MinDate and MaxDate
Parameter name: value
  at System.Windows.Forms.DateTimePicker.set_Value (DateTime value) [0x00000] 
  at System.Windows.Forms.DateTimePicker.SetPart (Int32 value, Char part)
[0x00000] 
  at System.Windows.Forms.DateTimePicker.KeyPressHandler (System.Object sender,
System.Windows.Forms.KeyPressEventArgs e) [0x00000] 
  at System.Windows.Forms.Control.OnKeyPress
(System.Windows.Forms.KeyPressEventArgs e) [0x00000] 
  at System.Windows.Forms.Control.ProcessKeyEventArgs
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.Control.ProcessKeyMessage
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.Control.WmKeys (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.DateTimePicker.WndProc (System.Windows.Forms.Message&
m) [0x00000] 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x00000] 
  at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000] 
  at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000] 
  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context) [0x00000] 
  at System.Windows.Forms.Application.Run
(System.Windows.Forms.ApplicationContext context) [0x00000] 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm)
[0x00000] 
  at DateTimePickerOuch.Program.Main () [0x00000] 


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list