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.

DateTimePickerAdv control

Thread ID:

Created:

Updated:

Platform:

Replies:

18043 Aug 23,2004 10:30 AM Aug 27,2004 05:33 PM Windows Forms 4
loading
Tags: Tools
Marju Makinen
Asked On August 23, 2004 10:30 AM

I’m using the DateTimePickerAdv control and the problem I’m having with this control is the selection of the month, day or year part of the date in the control. When I first open the form and set the value of the control to today’s date and set the focus to the field, the month part of the date is selected for editing. Then I move the cursor to the year part of the date and then leave the control. When I tab or set the focus back to the control the year part of the date is still selected. This is true even if I have changed the value of the date field in the code to a different date. I would prefer that every time I tab or set the focus to the DateTimePickerAdv control month would be the selected part of the date (as it is when I first open the form). How can I do this in the code?

Administrator [Syncfusion]
Replied On August 23, 2004 12:16 PM

Hi Marju, Thanks for bringing this issue to our attention. I have tested for this in our latest release - v2.1.0.9 and see that none of the fields in the DateTimePickerAdv get selected for editing when the DateTimePickerAdv receives focus (except when the application is loaded initially). Please refer to the test sample attached here. I have notified the development team about this issue and we will try our best to address this at the earliest. We appreciate your patience and thanks for your feedback. Regards, Guru Patwal Syncfusion, Inc.

Marju Makinen
Replied On August 23, 2004 01:59 PM

Do you have a work around for this until the issue is resolved?

Administrator [Syncfusion]
Replied On August 24, 2004 09:44 AM

Hi Marju, The above mentioned issue in v2.1.0.9 was a bug which has now been taken care of internally, and the fixes will be available in the next release of Essential Suite. For now, a workaround here would be to handle the DateTimePickerAdv''s GotFocus event as shown below : this.dateTimePickerAdv1.GotFocus += new EventHandler(DateTimePickerAdv_GotFocus); private void DateTimePickerAdv_GotFocus (object sender, EventArgs args) { this.dateTimePickerAdv1.Format = DateTimePickerFormat.Long; this.dateTimePickerAdv1.Format = DateTimePickerFormat.Short; } Please refer to the modified sample attached here that illustrates this workaround, and let me know if this works for you. Thanks for your feedback. Regards, Guru Patwal Syncfusion, Inc.

Marju Makinen
Replied On August 27, 2004 05:33 PM

Yes, the workaround worked. Thank you, Marju.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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.

;