16 references to MinimumDateTime
System.Windows.Forms (7)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (5)
559DateTime minSupportedDate = MinimumDateTime; 659if (value < MinimumDateTime) 664string.Format(SR.DateTimePickerMinDate, FormatDateTime(MinimumDateTime))); 1241MinDate = MinimumDateTime; 1413return _minDateTime != MinimumDateTime && _minDateTime != DateTime.MinValue;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (2)
517ArgumentOutOfRangeException.ThrowIfLessThan(value, DateTimePicker.MinimumDateTime); 1928=> _minDate != DateTimePicker.MinimumDateTime && _minDate != DateTime.MinValue;
System.Windows.Forms.Tests (8)
System\Windows\Forms\DateTimePickerTests.cs (8)
404DateTime expectedDate = DateTimePicker.MinimumDateTime.AddDays(1); 415act = () => _dateTimePicker.MinDate = DateTimePicker.MinimumDateTime.AddDays(-1); 422_dateTimePicker.Value = DateTimePicker.MinimumDateTime.AddDays(5); 423DateTime newMinDate = DateTimePicker.MinimumDateTime.AddDays(10); 436DateTimePicker.MinimumDateTime.Should().BeOnOrAfter(new DateTime(1753, 1, 1, 0, 0, 0)); 438DateTime result = DateTimePicker.MinimumDateTime; 495_dateTimePicker.Value = DateTimePicker.MinimumDateTime; 496_dateTimePicker.Value.Should().Be(DateTimePicker.MinimumDateTime);
WinFormsControlsTest (1)
Calendar.cs (1)
63monthCalendar1.MinDate = MinimumDateTime;