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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

disable dates in dateTimePickerAdv

Thread ID:

Created:

Updated:

Platform:

Replies:

85881 Jul 6,2009 03:34 PM UTC Jul 27,2009 06:23 AM UTC WinForms 1
loading
Tags: Tools
samuel
Asked On July 6, 2009 03:34 PM UTC

Hi

How can we disable the date in dateTimePickerAdv outside the interval defined by the MinValue and the MaxValue.

Regards

Samuel

Mano J [Syncfusion]
Replied On July 27, 2009 06:23 AM UTC

Hi Samuel,

Please set the InactiveCaptionColor as same as the background in the dateTimePickerAdv popup event.


this.dateTimePickerAdv1.OnPopup += new EventHandler(dateTimePickerAdv1_OnPopup);

void dateTimePickerAdv1_OnPopup(object sender, EventArgs e)
{
dateTimePickerAdv1.Calendar.InactiveMonthColor = Color.White;
}


Best Regards,
Mano

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

;