Calendar Control - Selectable dates

  • Thread starter Thread starter daz_oldham
  • Start date Start date
D

daz_oldham

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top