Is there a different event in MonthCalendar when the clock strikes midnight? DateChanged is for when the user selects the date

  • Thread starter Thread starter Paul D Goldstein
  • Start date Start date
P

Paul D Goldstein

Guest
I have an app that employs the MonthCalendar control. It is great for clicking through months/years...I even have added several BoldedDates to it as well.

The problem that I am having is that everything on the rest of my form is contingent on the DateChanged event. When the user clicks on the MonthCalendar control to change the day/month/year being viewed...the DateChanged event fires, and the Sub processes the new Date...and everything is copacetic.

However, if the program is running and the user leaves it up overnight...like going home at 5pm and coming back in at 9am... the next day has a rectangle around it, and the previous day is still hi-lited...and the DateChanged event doesn’t fire (because...according to the documentation it says: The DateChanged event occurs during any date selection, whether by mouse, keyboard, or code.

I’ve tried every other Event. The only thing that fires is the GotFocus and LastFocus events...but not necessarily at midnight when the day changes.

Any ideas?

Thanks for your time in advance.

Sincerely,

Paul Goldstein


Paul D. Goldstein Forceware Systems, Inc.

Continue reading...
 
Back
Top