LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to mark days in calendar control.

hi all ,

i try to mark(color) sevral days Programmatically  in month calendar control(.net) but not sucsess.

 

0 Kudos
Message 1 of 5
(3,629 Views)

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

David C
0 Kudos
Message 2 of 5
(3,577 Views)

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.

0 Kudos
Message 3 of 5
(3,538 Views)

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.

David C
Message 4 of 5
(3,488 Views)

Thanks i will try it.

0 Kudos
Message 5 of 5
(3,447 Views)