How to Change the Date in a DateTimePickerAdv Control When it is ReadOnly in Windows Forms DateTimePickerAdv(Classic)
28 Apr 20211 minute to read
This page explains How to navigate to current date in DateTimePickerAdv and more details.
How to navigate to current date in DateTimePickerAdv ?
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