How to Change the Date in a DateTimePickerAdv Control When it is ReadOnly in Windows Forms DateTimePickerAdv(Classic)
3 Sep 2020 / 1 minute to read
We can make the control read only by setting ReadOnly property to true. DateTimePickerAdv control have an option to change the date, even in ReadOnly mode using Arrow keys. Set ReadOnlyValueChange property to true to effect this setting.
this.dateTimePickerAdv1.ReadOnly = true; this.dateTimePickerAdv1.ReadOnlyValueChange = true;
Me.dateTimePickerAdv1.ReadOnly = True Me.dateTimePickerAdv1.ReadOnlyValueChange = True