A few days ago a strange error began to appear in the MonthCalendar component.
System.InvalidOperationException: Operation is not valid due to the current state of the object. at System.Windows.Forms.MonthCalendar.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Windows 7 System, .Net Framework 4.0
The program has not changed for many years and worked fine, and suddenly began to fall when choosing a date in the calendar.
Has anyone come across this? Maybe Microsoft rolled out some kind of update that destroys the calendar?
Here a person seems to have a similar problem: Strange error in MonthCalendar just started happening out of nowhere