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

Thread ID:

Created:

Updated:

Platform:

Replies:

87299 Jul 10,2009 12:31 PM UTC Jul 27,2009 06:22 AM UTC WinForms 1
loading
Tags: Tools
samuel
Asked On July 10, 2009 12:31 PM UTC

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 06:22 AM UTC

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.

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

;