Darren,
First question I would have is this a windows or web app?
I was able to set the MinDate property like so:
monthCalendar1.MinDate = DateTime.Parse( "01/01/2004");
in a Windows app. I had set the MinDate property to another value, then
changed it via this line of code and it worked in my app.
I was also able to set it to today's date via:
monthCalendar1.MinDate = DateTime.Now;
Are you getting an error, or is the property just not appearing in the
intellisense?
Have you checked the obvious...like spelling and caps?
WhiteWizard aka Gandalf
MCSD.NET, MCAD, MCT
"daz_oldham" wrote:
> C# 2.0
>
> Hi everyone
>
> I want to set a date range on my calendar control, but cannot figure
> out how to do it.
>
> this.clnSelectDate.MinDate
>
> Is not a valid option for me, and I would like to be able to select
> only days between today, and eighteen months into the future, with the
> rest being unavailable or hidden.
>
> Any ideas?
>
> Thanks
>
> Darren
>
>
|