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:
parent
3606f4ec5c
commit
0468453761
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue