How to Close the DateTimePickerAdvs Drop Down by Hitting ENTER key or ESC key in Windows Forms DateTimePickerAdv(Classic)
If you want to close the DateTimePickerAdv’s drop-down, when you hit the ENTER key or the ESC key, you need to set DateTimePickerAdv.WantEnterKey property to false.
this.dateTimePickerAdv1.Calendar.WantEnterKey = false;
Me.dateTimePickerAdv1.Calendar.WantEnterKey = False
Was this page helpful? Yes No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page