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.

disable dates in dateTimePickerAdv

Thread ID:

Created:

Updated:

Platform:

Replies:

85881 Jul 6,2009 11:34 AM Jul 27,2009 02:23 AM Windows Forms 1
loading
Tags: Tools
samuel
Asked On July 6, 2009 11:34 AM

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 02:23 AM

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.

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.

;