[Mono-bugs] [Bug 337693] New: DateTimePicker. Value should be between MinDate and MaxDate

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Oct 29 18:37:34 EDT 2007


           Summary: DateTimePicker.Value should be between MinDate and
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: i686
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: alex at buayacorp.com
         QAContact: mono-bugs at ximian.com
          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
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? 

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