PC Review


Reply
Thread Tools Rate Thread

Calendar Control - Selectable dates

 
 
daz_oldham
Guest
Posts: n/a
 
      13th Jun 2006
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

 
Reply With Quote
 
 
 
 
=?Utf-8?B?V2hpdGVXaXphcmQ=?=
Guest
Posts: n/a
 
      13th Jun 2006
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
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dates in calendar control jd Microsoft Access Forms 4 23rd Dec 2009 10:34 PM
Using Calendar control to display dates Ronio Microsoft Excel Misc 3 1st May 2008 04:53 PM
Hyperlink from dates in Calendar Control 11.0 =?Utf-8?B?QW50aG9ueQ==?= Microsoft Excel Misc 0 24th Oct 2006 12:40 AM
Valid Until dates on selectable data Duncs Microsoft Access Form Coding 0 17th May 2006 01:02 PM
display MonthCalendar selectable dates Rachel Suddeth Microsoft C# .NET 2 18th Oct 2005 05:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:59 PM.