What type(s) of exceptions will be thrown when calling Form.Invoke when the
handle for the form has yet to be created? MS only states, "If no
appropriate handle can be found, the Invoke method will throw an exception.
Exceptions that are raised during the call will be propagated back to the
caller."
http://msdn.microsoft.com/library/de...voketopic1.asp
How is a programmer to know if the exception thrown was from running the
delegate or from not having a valid window handle?
Calling Form.Invoke also throws an exception if the form has been disposed.
Why did MS not specify the types of exceptions thrown? They seem to specify
it in all the other cases that I've seen. Are there other cases where they
just state that an exception will be thrown without saying of what type(s)?
Is there any guarantee that if Form.BeginInvoke is called twice from the
same thread on the same form, that the first delegate passed to BeginInvoke
will run first? The docs don't mention this case at all.