Tuesday, December 31, 2013

Help: Form.show() fails with exception

The COM components probably want the parent window handle to be fully initialized for some reason. My suggestion is in the load event, add a handler for either the Application being Idle (http://msdn.microsoft.com/en-us/library/system.windows.forms.application.idle(v=vs.110).aspx) or Form Activate ( http://msdn.microsoft.com/en-us/library/system.windows.forms.form.activate.aspx) When they are fired, remove the handler and open the form then.

No comments:

Post a Comment