Wrox Programmer Forums
|
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 17th, 2004, 11:31 PM
Registered User
 
Join Date: Aug 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB.NET: MonthCalendar


Does anyone know how to highlight the dates in different colours using the MonthCalendar...

I have ask it in many forums but none of them know...

They know only how to bold the dates in the Monthcalendar..

I want to ask if it is not possible to highlight and colour the dates, how about give the bold dates a different colour..

Thanks

 
Old November 9th, 2004, 05:27 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Default

It is not possible to do anything other than make certain dates appear in bold.

If you want to make certain dates appear in different colours, your only option is to create a new control that inherits from the MonthCalendar control and shadow it's Paint method. This is fairly involved and requires a pretty good knowledge of the GDI object model, so I'd suggest that unless you have this, it'd be easier to stick with making dates appear in bold. Either that, or do a search on google to see if anyone has come up with a MonthView calendar control that allows dates to have their backcolor/forecolor/font changed.

 
Old January 19th, 2005, 05:46 AM
Registered User
 
Join Date: Jan 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

toytoy,try this:

http://msdn.microsoft.com/library/de...vidualdays.asp






Similar Threads
Thread Thread Starter Forum Replies Last Post
vb.net 2008 re: VB.NET databases book bigbearjeff VB.NET 0 June 2nd, 2008 01:22 PM
change color for bolddates of monthcalendar shijucv VS.NET 2002/2003 1 September 28th, 2004 07:07 AM
MonthCalendar Control for .Net deepu VS.NET 2002/2003 2 March 18th, 2004 10:28 AM
MonthCalendar control for .NET deepu ASP.NET 1.0 and 1.1 Basics 2 January 22nd, 2004 12:29 AM
vb.net 2002 - vb.net 2003 book metalaaron Wrox Book Feedback 0 August 2nd, 2003 10:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.