Add a call to Application.DoEvents() before launching the example. This should ensure that the launcher window disappears before the example is launched and should also take care of any keyboard/mouse handling issues.

This commit is contained in:
the_fiddler 2008-12-25 00:57:00 +00:00
parent e4b5e23701
commit d45f6f7d6d

View file

@ -153,6 +153,7 @@ namespace Examples
Debug.Print("Launching example: {0}", example.ToString());
this.Visible = false;
Application.DoEvents();
example.GetMethod("Main").Invoke(null, null);