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

           Summary: DateTimePicker.Value should be between MinDate and
                    MaxDate
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: i686
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
          Found By: ---


Description of Problem:
DateTimePicker's Value setter does not validate if an entered value is between
MinDate and MaxDate.

Steps to reproduce the problem:
1. Compile and run the following code snippet (gmcs date.cs
/r:System.Windows.Forms):
--
using System;
using System.Windows.Forms;

class App
{
        public static void Main (string[] args)
        {
                DateTimePicker dtp = new DateTimePicker();

                dtp.MinDate = dtp.MaxDate = DateTime.Today;

                dtp.Value = DateTime.Now.AddDays(10);
        }
}
--


Actual Results:
App runs without errors

Expected Results:
App should throw ArgumentOutOfRangeException.

How often does this happen? 
Always


-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to