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 the calandar

Thread ID:

Created:

Updated:

Platform:

Replies:

87299 Jul 10,2009 08:31 AM Jul 27,2009 02:22 AM Windows Forms 1
loading
Tags: Tools
samuel
Asked On July 10, 2009 08:31 AM

Hi

How can we disable (color grey) the days in the calandar of dateTimePickerAdv composant, outside the interval defined by the MinValue and the MaxValue.

Regards

Samuel

Mano J [Syncfusion]
Replied On July 27, 2009 02:22 AM

Hi,

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;
}


Thanks,
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.

;