We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to Auto-Select initial field in the DateTimePickerAdv once it is focused?

The null value of the DateTimePickerAdv is not set, by default. It can be set to DateTimePickerAdv by enabling the property, IsNullDate. When Date value is set as null date, the property NullModeKeyReset is set to ArrowKeys, by default.

 

The NullModeKeyReset property helps you define the keyboard navigation of the DateTimePickerAdv. When the date value is changed by keyboard navigation, the field of the DateTimePickerAdv changes continuously.

 

It is possible to AutoSelect the initial field or date value once it is focused by using its property named ResetSelectionOnFocus.

 

The following code example demonstrates the same.

C#

VB

 

Figure 1: Before selecting the date

Figure 2: After selecting the date

Sample Links:

C#: http://www.syncfusion.com/downloads/support/directtrac/139429/ze/DateTimePickerAdv-2028970952

VB: http://www.syncfusion.com/downloads/support/directtrac/139429/ze/DateTimePickerAdv_VB-1618088184

Article ID: Published Date: Last Revised Date: Platform: Control:
5117 06/02/2015 06/02/2015 Windows Forms DateTimePickerAdv
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.