disable dates in dateTimePickerAdv

Hi

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

Regards

Samuel

1 Reply

MJ Mano J Syncfusion Team 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

Loader.
Up arrow icon