23 writes to Value
PresentationUI (3)
MS\Internal\Documents\RequestedSignatureDialog.cs (1)
35_dateTimePicker.Value = DateTime.Now.AddDays(10);
MS\Internal\Documents\RMPublishingDialog.cs (2)
55datePickerValidUntil.Value = DateTime.Today.AddDays(1); 117datePickerValidUntil.Value = localValidUntil;
System.Windows.Forms (3)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (3)
617Value = _maxDateTime; 673Value = _minDateTime; 835Value = DateTime.Parse(value, CultureInfo.CurrentCulture);
System.Windows.Forms.Tests (17)
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (1)
107dateTimePicker.Value = dt;
System\Windows\Forms\DateTimePickerTests.cs (16)
335_dateTimePicker.Value = new(2021, 12, 31); 422_dateTimePicker.Value = DateTimePicker.MinimumDateTime.AddDays(5); 489_dateTimePicker.Value = initialDate; 492_dateTimePicker.Value = newDate; 495_dateTimePicker.Value = DateTimePicker.MinimumDateTime; 498_dateTimePicker.Value = DateTimePicker.MaximumDateTime; 507Action act = () => _dateTimePicker.Value = DateTime.Parse(value); 655_dateTimePicker.Value = DateTime.Now; 659_dateTimePicker.Value = DateTime.Now.AddDays(1); 917dateTimePicker.Value = dt; 929dateTimePicker.Value = dt; 942dateTimePicker.Value = dt; 955dateTimePicker.Value = dt; 969dateTimePicker.Value = dt; 983dateTimePicker.Value = dt; 997dateTimePicker.Value = dt;
24 references to Value
PresentationUI (2)
MS\Internal\Documents\RequestedSignatureDialog.cs (1)
64_documentSignatureManager.OnAddRequestSignature(sigResources,_dateTimePicker.Value);
MS\Internal\Documents\RMPublishingDialog.cs (1)
178return datePickerValidUntil.Value.ToUniversalTime();
System.Windows.Forms (12)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (12)
18[DefaultProperty(nameof(Value))] 20[DefaultBindingProperty(nameof(Value))] 327/// Indicates whether the <see cref="Value"/> property has been set. 615if (Value > _maxDateTime) 671if (Value < _minDateTime) 864bool valueChanged = !DateTime.Equals(Value, value); 881nameof(Value), 976SYSTEMTIME systemTime = (SYSTEMTIME)Value; 1000_value = Value; 1245/// Resets the <see cref="Value"/> property to its default value. 1417/// Determines if the <see cref="Value"/> property needs to be persisted. 1432public override string ToString() => $"{base.ToString()}, Value: {Value:G}";
System.Windows.Forms.Tests (6)
System\Windows\Forms\DateTimePickerTests.cs (6)
119Assert.True(control.Value > DateTime.MinValue); 427_dateTimePicker.Value.Should().Be(newMinDate); 490_dateTimePicker.Value.Should().Be(initialDate); 493_dateTimePicker.Value.Should().Be(newDate); 496_dateTimePicker.Value.Should().Be(DateTimePicker.MinimumDateTime); 499_dateTimePicker.Value.Should().Be(DateTimePicker.MaximumDateTime);
WinFormsControlsTest (4)
Calendar.cs (4)
36if (minDateDateTimePicker.Value > monthCalendar1.MaxDate) 42monthCalendar1.MinDate = minDateDateTimePicker.Value; 47if (maxDateDateTimePicker.Value < monthCalendar1.MinDate) 53monthCalendar1.MaxDate = maxDateDateTimePicker.Value;