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 3606f4ec5c
commit 0468453761

View file

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