473,399 Members | 3,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

display MonthCalendar selectable dates

Is there a way to have the non-selectable dates (those before MinDate and
after MaxDate) draw differently so my users can see right away what dates
aren't allowed? I'm not seeing it...

Otherwise, anyone know of a cheap 3rd party calendar control I could use
that would provide that ability?

Thanks,
Rachel
Nov 17 '05 #1
2 3308
I’d suggest setting those dates that can be selectable as bolded dates with
AddBoldedDate() and a call to UpdateBoldedDates() when you’ve added them all.

Brendan
"Rachel Suddeth" wrote:
Is there a way to have the non-selectable dates (those before MinDate and
after MaxDate) draw differently so my users can see right away what dates
aren't allowed? I'm not seeing it...

Otherwise, anyone know of a cheap 3rd party calendar control I could use
that would provide that ability?

Thanks,
Rachel

Nov 17 '05 #2
Hmmm... it's a good idea, and it would be fine if I knew the allowable dates
would span no more than a few months. But what I have is a pop-up form that
contains a MonthCalendar, and this will be used in many different places
throught the application (like DatePicker, but DatePicker doesn't do things
as we want.) In some cases, that means every date on the entire calendar
would have to be added to the BoldedDates (if MinDate and MaxDate were left
at default values.) A very common scenario is that all dates before today
(or from today forward) are allowed. I think it's really necessary to treat
them as ranges, not as a collection of dates.

Well, maybe if I just bolded those allowable dates that currently showed...
and did AddBoldedDates as necessary when the visible month changed... I
supposed there must be a way to know when that happens.

-Rachel

"Brendan Grant" <gr****@NOSPAMdahat.com> wrote in message
news:54**********************************@microsof t.com...
I'd suggest setting those dates that can be selectable as bolded dates with AddBoldedDate() and a call to UpdateBoldedDates() when you've added them all.
Brendan
"Rachel Suddeth" wrote:
Is there a way to have the non-selectable dates (those before MinDate and after MaxDate) draw differently so my users can see right away what dates aren't allowed? I'm not seeing it...

Otherwise, anyone know of a cheap 3rd party calendar control I could use
that would provide that ability?

Thanks,
Rachel

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: jpaquete | last post by:
Hi, it seems this is a common demand and the control does not provide simple ways to do it, This is like a brute force attack but it worked for me... void SelectAllDates(){ Graphics g =...
13
by: Sand | last post by:
I have a monthCalender that I want users to be able to select a range of dates (or a single date) then calculate a value based on the number of days that person has selected. The values are...
8
by: vbmark | last post by:
I want the MonthCalendar control to return the single day selected. I have MaxSelectionCount = 1. What I get back though is this: "SelectionRange: Start: 5/5/2005 12:00:00 AM, End: 5/5/2005...
1
by: DS | last post by:
I seem to have run into another strange anomaly with the monthCalendar control. I want to display 6 months at time with either the first half of the year (January-June) or the later half of the...
2
by: Al_C | last post by:
Hi, Have an app where the user wants to pull up data for selected dates. The monthcalendar control is ideal for that, but the problem I have is that there may not be data for all dates. I'd...
2
by: meska | last post by:
Hi all, Scenario: I have a MonthCalendar control, and DataGridView. Depending on dates displayed in MonthCalendar I want to update information from database. The Possible Solution: So I...
11
by: Randy | last post by:
I have a MonthCalendar on one of my forms. I have disovered that the DateChanged event is triggered not only when the user clicks on a new date, but also if they click on the Previous or Next...
1
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, Is it possible to get a range of dates and to bold it in my monthCalenda? what i mean is, that if for example, i will get the date range 13\01\2008 - 15\01\2008, i want to bold the dates:...
1
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I have a typical window form with all the standard buttons, group boxes, etc. on it. I am trying to also display a MonthCalendar control on it too but I simply can't get the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.