• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1032
  • Last Modified:

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.
0
rbichon
Asked:
rbichon
  • 3
  • 2
1 Solution
 
jpaulinoCommented:
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
 
jpaulinoCommented:
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now