MonthCalendar: Update Bolded Dates without returning home

When a bolded date is added with AddBoldedDate, the date doesn't appear bold unless the display range changes. But if I use UpdateBoldedDates, the display range changes back to the original range that was visible when the exe started. Can anyone tell me how to add a bold date so that it is immediately visible and so that the screen does not revert back to the home position? Thanks.
LVL 1
rbichonAsked:
Who is Participating?
 
Jorge PaulinoIT Pro/DeveloperCommented:
You have to do MonthCalendar1.UpdateBoldedDates() after add it
0
 
rbichonAuthor Commented:
Again, that resets the calendar to the original display range. How do I keep it from doing that?
0
 
Jorge PaulinoIT Pro/DeveloperCommented:
This works fine and it keeps the actual date selecte.

 MonthCalendar1.AddBoldedDate(Now.AddDays(25))
 MonthCalendar1.UpdateBoldedDates()
0
 
rbichonAuthor Commented:
That is only if you haven't changed the display range. I show 6 months. If you go past that to 12 months ahead and then run the UpdateBoldedDates, it will bring you back to the initial screen.
0
 
rbichonAuthor Commented:
Nevermind. This control seems to be very limited.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.