Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Suppose you are developing a win form application using Visual Studio 2010. Your app needs to use a month calendar where you can pick a desired day and pick a desired color and assign that color to that day, after that, the background color of the chosen day will be the chosen color. What I mean is the month calendar control needs to be able to set background colors to the days showed, in the same month can be different colors assigned to different days.

Is the Monthcalendar control for winforms application in VS2010 able to do the work mentioned above? If the answer is "YES", how?

There exist another way to do that? Is very important show a month calendar to the user.
Posted

The standard MonthCalendar control doesn't support this. You'd have to create your own version of the control and add this support, ownerdrawing the control in the process.

Or, look around to the various control vendors and see if anyone already has one that does what you want.
 
Share this answer
 
v2
Is the Monthcalendar control for winforms application in VS2010 able to do the work mentioned above?

No.


There exist another way to do that?

Design your own control. I suggest you to inherit from Control.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900