Leban's calendar dates background color properties

L

Lorenzo

Hello,
I am trying to access, if this is possible, a property of Leban's Calendar
to set the background color of the individul dates. I would like to be able
to color them differntly depending on what dates I have stored in one
table. Does anyone know if this is possible, if the property exists or if
there an easy way to setup one. For example if in my table I have stored 2
Jan I would like to have this 2 Jan background colored in blue in the
popping up calendar. My programming skills are limited expecially with
win32 but I can somehow manage interacting with properties and ok with VBA
code.

Thanks,
Lorenzo
 
S

Stephen Lebans

THe Microsoft MonthCalendar control does not expose the property you desire.
THe closest you can come is to use the DayState property which allows you to
display desired dates in BOLD.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


"Lorenzo"
 
L

Lorenzo

Hello Stephen and many thanks for your help. I hope I haven't been the only
one asking for such a feature and maybe one day this will be added (great
for event planning)!
I was able to highlight a date thanks to the SetBoldDayState function but I
was then no longer able to reset the font to normal :( I see that the
optional parameter reset month should deal with it (I assume...) but what if
I need to bold and unbold more than one month?

Thanks,
Lorenzo


"Lorenzo"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top