The month forward or previous arrow is clicked on my DateTimePicker control, it removes the ValueChanged event repeatedly. I have to use the debugger to stop the application. Note: By the time I click on any date, my application works fine. The MSDN document shows an example for document documentation. But I can not find any example function named Datetime Picture 1_wholes (). The skeleton of this function was made for me when I clicked the control twice in the VSNet 2008 designer. Dave 81 set me on the right path. If you say that, then the problem is that When the user changes the value manually, the closeup event is not shown. The way I have fixed this problem with constant re-firing of the month change, it only changes my Value Change event to refresh if the calendar is not left below. Ie .:
private bool _calendarDroppedDown = false; // It is said that when the calendar turns the private zero date StartDateTimePicker_DropDown (Object Sender, EventArgs e) {_calendarDroppedDown = true; } // When the calendar closes the private zero date StartDateTimePicker_CloseUp (Object Sender, EventArgs e) {_calendarDroppedDown = false; Refresh CartToolbox (empty, incompatible); // Now we want to refresh the display. // This method is called when ValueChanged is declared a public zero refreshtulbbox (object sender, eventArgse E) (if (_calendarDroppedDown) // only once user chooses a date from calendar As long as they do not paging through the days; ...}
Comments
Post a Comment