Calling System.Windows.Forms.Control.Invoke on a disposed control throws an InvalidOperationException from System.Windows.Forms.Control.WaitForWaitHandle with the exception message "Invoke or BeginInvoke cannot be called on a control until the window handle has been created."This exception message is misleading, because the return value of Control.IsHandleCreated has nothing to do with the exception. It would be better to throw an ObjectDisposedException, since that reflects the underlying exceptional condition.
Product Language
Version
Operating System
Operating System Language
Steps to Reproduce
Actual Results
Expected Results