Re: What do triggers this event in MonthCalendar ?
- Posted by DerekParnell (admin) Aug 04, 2013
- 1316 views
the routine "onSelectDate" is being called every 60 seconds exactly.
I can not find what might be causing this event.
I'm sorry that I have not got back to you earlier about this.
The Change event for MonthCalendar controls gets invoked when either the user explicitly changes the control or when the system sends a 'heartbeat' notification. To quote the Microsoft documentation ...
This notification code is also sent by the system at regular intervals so that the control can respond to date changes.
Your application can tell the difference by looking at the third parameter in your handler routine. If that is an empty sequence, then it is a Windows generated event otherwise the third parameter contains the currently selected date range in the control ...
{ {Begin_year, Begin_Month, Begin_DayOfWeek, Begin_Day}, {End_year, End_Month, End_DayOfWeek, End_Day}, }