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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DateTimePickerAdv disable keyboard input

Thread ID:

Created:

Updated:

Platform:

Replies:

82296 Jun 9,2009 08:06 AM UTC Aug 12,2010 10:03 AM UTC WinForms 2
loading
Tags: Tools
"Anna" Natalia Swanny Triana Sudiono
Asked On June 9, 2009 08:06 AM UTC

Hi,

I have a list of valid dates that should be used for the DateTimePickerAdv and I use the DateCellQueryInfo event to prevent invalid dates from being selected by the users.

How do I do the same for the manual input on the DateTimePickerAdv 'TextBox'? If not, how to disable any manual input and force users to use the drop-down calendar?

Thanks

natalia

Fathima Shalini P [Syncfusion]
Replied On June 12, 2009 04:45 AM UTC

Hi Natalia,

Thank you for your interest in Syncfusion Products.

To disable entering values manually and to allow to enter a value only using MonthCalender is possible by overriding ProcessCmdKey event. Kindly refer to the sample provided below that illustrates this:

http://files.syncfusion.com/support/Tools.Windows/7.2.0.20/56845_1/main.htm

Please let me know if any concerns.

Regards,
Fathima

yuazhe
Replied On August 12, 2010 10:03 AM UTC

The link does not work. Could you please provide a working one?

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.

Warning Icon 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.Close Icon

;