1 type derived from DateTimePicker
System.Windows.Forms.Tests (1)
System\Windows\Forms\DateTimePickerTests.cs (1)
1006public class SubDateTimePicker : DateTimePicker
61 instantiations of DateTimePicker
Accessibility_Core_App (3)
CommonControl1.Designer.cs (3)
80this.dateTimePicker3 = new System.Windows.Forms.DateTimePicker(); 81this.dateTimePicker2 = new System.Windows.Forms.DateTimePicker(); 82this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
PresentationUI (2)
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (1)
40_dateTimePicker = new System.Windows.Forms.DateTimePicker();
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
55this.datePickerValidUntil = new System.Windows.Forms.DateTimePicker();
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\DateTimePickerDesignerTests.cs (2)
24using DateTimePicker dateTimePicker = new(); 34using DateTimePicker dateTimePicker = new();
System.Windows.Forms.Tests (47)
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (22)
15using DateTimePicker dateTimePicker = new(); 26using DateTimePicker dateTimePicker = new(); 38using DateTimePicker dateTimePicker = new(); 50using DateTimePicker dateTimePicker = new(); 79using DateTimePicker dateTimePicker = new(); 93using DateTimePicker dateTimePicker = new(); 105using DateTimePicker dateTimePicker = new(); 123using DateTimePicker dateTimePicker = new(); 138using DateTimePicker dateTimePicker = new(); 154using DateTimePicker dateTimePicker = new(); 174using DateTimePicker dateTimePicker = new(); 195using DateTimePicker dateTimePicker = new(); 212using DateTimePicker dateTimePicker = new(); 229using DateTimePicker dateTimePicker = new(); 254using DateTimePicker dateTimePicker = new() { ShowCheckBox = false }; 269using DateTimePicker dateTimePicker = new() { ShowCheckBox = true }; 280using DateTimePicker dateTimePicker = new(); 290using DateTimePicker dateTimePicker = new() { AccessibleName = testAccessibleName }; 307using DateTimePicker dateTimePicker = new(); 326using DateTimePicker dateTimePicker = new(); 351using DateTimePicker dateTimePicker1 = new(); 353using DateTimePicker dateTimePicker2 = new();
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
173{ new DateTimePicker(), new string[] { "DataContext: Object", "Tag: Object" } },
System\Windows\Forms\DateTimePickerTests.cs (24)
16public DateTimePickerTests() => _dateTimePicker = new(); 167using DateTimePicker control = new(); 174using DateTimePicker control = new(); 188using DateTimePicker control = new(); 196using DateTimePicker control = new(); 210using DateTimePicker control = new(); 218using DateTimePicker control = new(); 232using DateTimePicker control = new(); 240using DateTimePicker control = new(); 254using DateTimePicker control = new(); 262using DateTimePicker control = new(); 276using DateTimePicker control = new(); 687using DateTimePicker control = new(); 708using DateTimePicker control = new(); 737using DateTimePicker control = new(); 800using DateTimePicker control = new(); 821using DateTimePicker control = new(); 915using DateTimePicker dateTimePicker = new(); 927using DateTimePicker dateTimePicker = new(); 940using DateTimePicker dateTimePicker = new(); 953using DateTimePicker dateTimePicker = new(); 967using DateTimePicker dateTimePicker = new(); 981using DateTimePicker dateTimePicker = new(); 995using DateTimePicker dateTimePicker = new();
WinFormsControlsTest (7)
Calendar.Designer.cs (2)
35this.minDateDateTimePicker = new System.Windows.Forms.DateTimePicker(); 40this.maxDateDateTimePicker = new System.Windows.Forms.DateTimePicker();
DateTimePicker.Designer.cs (5)
36this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); 37this.dateTimePicker2 = new System.Windows.Forms.DateTimePicker(); 38this.dateTimePicker3 = new System.Windows.Forms.DateTimePicker(); 39this.dateTimePicker4 = new System.Windows.Forms.DateTimePicker(); 40this.dateTimePicker5 = new System.Windows.Forms.DateTimePicker();
105 references to DateTimePicker
Accessibility_Core_App (3)
CommonControl1.Designer.cs (3)
750private System.Windows.Forms.DateTimePicker dateTimePicker2; 751private System.Windows.Forms.DateTimePicker dateTimePicker1; 752private System.Windows.Forms.DateTimePicker dateTimePicker3;
DesignSurface (1)
MainForm.cs (1)
178surface.CreateControl<DateTimePicker>(new Size(200, 23), new Point(172, 150));
PresentationUI (4)
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (1)
249private System.Windows.Forms.DateTimePicker _dateTimePicker;
MS\Internal\Documents\RMPublishingDialog.cs (2)
105DateTime localValidUntil = DateTimePicker.MaximumDateTime; 113if (localValidUntil < DateTimePicker.MaximumDateTime)
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
420private System.Windows.Forms.DateTimePicker datePickerValidUntil;
System.Windows.Forms (18)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
108/// Initializes a new instance of the <see cref="DateTimePicker"/> class.
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (8)
13public DateTimePickerAccessibleObject(DateTimePicker owner) : base(owner) 63if (this.TryGetOwnerAs(out DateTimePicker? owner) && owner.ShowCheckBox && owner.Checked) 91UIA_PATTERN_ID.UIA_TogglePatternId when this.TryGetOwnerAs(out DateTimePicker? owner) && owner.ShowCheckBox => true, 121=> this.TryGetOwnerAs(out DateTimePicker? owner) && owner.Checked ? ToggleState.ToggleState_On : ToggleState.ToggleState_Off; 125if (this.IsOwnerHandleCreated(out DateTimePicker? owner)) 133if (this.IsOwnerHandleCreated(out DateTimePicker? owner) 142if (this.IsOwnerHandleCreated(out DateTimePicker? owner) 150=> this.TryGetOwnerAs(out DateTimePicker? owner)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (9)
452get => DateTimePicker.EffectiveMaxDate(_maxDate); 460ArgumentOutOfRangeException.ThrowIfLessThan(value, DateTimePicker.EffectiveMinDate(_minDate)); 508get => DateTimePicker.EffectiveMinDate(_minDate); 516ArgumentOutOfRangeException.ThrowIfGreaterThan(value, DateTimePicker.EffectiveMaxDate(_maxDate)); 517ArgumentOutOfRangeException.ThrowIfLessThan(value, DateTimePicker.MinimumDateTime); 1700SetRange(DateTimePicker.EffectiveMinDate(_minDate), DateTimePicker.EffectiveMaxDate(_maxDate)); 1922=> _maxDate != DateTimePicker.MaximumDateTime && _maxDate != DateTime.MaxValue; 1928=> _minDate != DateTimePicker.MinimumDateTime && _minDate != DateTime.MinValue;
System.Windows.Forms.Design.Tests (5)
EnsureEditorsTests.cs (3)
94[InlineData(typeof(DateTimePicker), "MaxDate", typeof(DateTimeEditor))] 95[InlineData(typeof(DateTimePicker), "MinDate", typeof(DateTimeEditor))] 96[InlineData(typeof(DateTimePicker), "Value", typeof(DateTimeEditor))]
System\Windows\Forms\Design\DateTimePickerDesignerTests.cs (2)
24using DateTimePicker dateTimePicker = new(); 34using DateTimePicker dateTimePicker = new();
System.Windows.Forms.Tests (66)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (3)
23typeof(DateTimePicker), 44typeof(DateTimePicker), typeof(WebBrowser) 1343{ typeof(DateTimePicker), string.Empty },
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (23)
6using static System.Windows.Forms.DateTimePicker; 15using DateTimePicker dateTimePicker = new(); 26using DateTimePicker dateTimePicker = new(); 38using DateTimePicker dateTimePicker = new(); 50using DateTimePicker dateTimePicker = new(); 79using DateTimePicker dateTimePicker = new(); 93using DateTimePicker dateTimePicker = new(); 105using DateTimePicker dateTimePicker = new(); 123using DateTimePicker dateTimePicker = new(); 138using DateTimePicker dateTimePicker = new(); 154using DateTimePicker dateTimePicker = new(); 174using DateTimePicker dateTimePicker = new(); 195using DateTimePicker dateTimePicker = new(); 212using DateTimePicker dateTimePicker = new(); 229using DateTimePicker dateTimePicker = new(); 254using DateTimePicker dateTimePicker = new() { ShowCheckBox = false }; 269using DateTimePicker dateTimePicker = new() { ShowCheckBox = true }; 280using DateTimePicker dateTimePicker = new(); 290using DateTimePicker dateTimePicker = new() { AccessibleName = testAccessibleName }; 307using DateTimePicker dateTimePicker = new(); 326using DateTimePicker dateTimePicker = new(); 351using DateTimePicker dateTimePicker1 = new(); 353using DateTimePicker dateTimePicker2 = new();
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarAccessibleObjectTests.cs (2)
136Assert.Equal(DateTimePicker.EffectiveMinDate(minDate), accessibleObject.MinDate); 148Assert.Equal(DateTimePicker.EffectiveMaxDate(maxDate), accessibleObject.MaxDate);
System\Windows\Forms\DateTimePickerTests.cs (38)
14private readonly DateTimePicker _dateTimePicker; 167using DateTimePicker control = new(); 174using DateTimePicker control = new(); 188using DateTimePicker control = new(); 196using DateTimePicker control = new(); 210using DateTimePicker control = new(); 218using DateTimePicker control = new(); 232using DateTimePicker control = new(); 240using DateTimePicker control = new(); 254using DateTimePicker control = new(); 262using DateTimePicker control = new(); 276using DateTimePicker control = new(); 392DateTime expectedDate = maxSupportedDateTime.Year > DateTimePicker.MaxDateTime.Year ? DateTimePicker.MaxDateTime : maxSupportedDateTime; 394DateTime result = DateTimePicker.MaximumDateTime; 404DateTime expectedDate = DateTimePicker.MinimumDateTime.AddDays(1); 412Action act = () => _dateTimePicker.MinDate = DateTimePicker.MaximumDateTime.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); 498_dateTimePicker.Value = DateTimePicker.MaximumDateTime; 499_dateTimePicker.Value.Should().Be(DateTimePicker.MaximumDateTime); 687using DateTimePicker control = new(); 708using DateTimePicker control = new(); 737using DateTimePicker control = new(); 800using DateTimePicker control = new(); 821using DateTimePicker control = new(); 915using DateTimePicker dateTimePicker = new(); 927using DateTimePicker dateTimePicker = new(); 940using DateTimePicker dateTimePicker = new(); 953using DateTimePicker dateTimePicker = new(); 967using DateTimePicker dateTimePicker = new(); 981using DateTimePicker dateTimePicker = new(); 995using DateTimePicker dateTimePicker = new();
WinFormsControlsTest (8)
Calendar.cs (1)
4using static System.Windows.Forms.DateTimePicker;
Calendar.Designer.cs (2)
261private System.Windows.Forms.DateTimePicker minDateDateTimePicker; 266private System.Windows.Forms.DateTimePicker maxDateDateTimePicker;
DateTimePicker.Designer.cs (5)
111private System.Windows.Forms.DateTimePicker dateTimePicker1; 112private System.Windows.Forms.DateTimePicker dateTimePicker2; 113private System.Windows.Forms.DateTimePicker dateTimePicker3; 114private System.Windows.Forms.DateTimePicker dateTimePicker4; 115private System.Windows.Forms.DateTimePicker dateTimePicker5;