11-07-2013 03:55 AM
hi all ,
i try to mark(color) sevral days Programmatically in month calendar control(.net) but not sucsess.
11-08-2013 12:56 PM
Hi JTAG,
Could you provide some more details on what you are trying to accomplish? Do you just want to highlight different dates with the pre-colored squares or are you looking for an even deeper level of control?
I know that you can use an invoke node to call "SetSelectionRange" to mark several days with colored squares.
http://msdn.microsoft.com/en-us/library/system.windows.forms.monthcalendar(v=vs.110).aspx
11-12-2013 12:03 AM
Hi david,
first sorry for the delay(problem with my pc).
i try to make it but no success!!!.
i only succeed to mark the selected day as bold or change all days color.
see attch.
regard's
eyal.
11-14-2013 08:37 AM
The SetSelectionRange colors are tied to the TitleBackColor and TitleForeColor. I'm not sure how much customization you can get access to. You would have to dig deeper into Microsoft's documentation.
As a side note, this form is updated through Windows themes so if that is running you may not see any changes happen. See the following link for reference:
http://msdn.microsoft.com/en-us/library/9ctzxs7w%28v=vs.110%29.aspx
You can disable this through Windows Services if you want to test it. A quick google search will walk you through it.
11-17-2013 03:34 AM
Thanks i will try it.