Click here to Skip to main content
11,413,676 members (79,417 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0 graphics Controls
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 19-Nov-10 6:24am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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

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

  Print Answers RSS
0 OriginalGriff 379
1 Maciej Los 210
2 Sascha Lefévre 175
3 Kornfeld Eliyahu Peter 170
4 KARTHIK Bangalore 145
0 Sergey Alexandrovich Kryukov 9,035
1 OriginalGriff 7,387
2 Maciej Los 3,640
3 Abhinav S 3,298
4 Peter Leow 3,084


Advertise | Privacy | Mobile
Web01 | 2.8.150427.2 | Last Updated 19 Nov 2010
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100