From d45f6f7d6d3194cc21d8c2fb9745f0567bd724d8 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Thu, 25 Dec 2008 00:57:00 +0000 Subject: [PATCH] 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. --- Source/Examples/ExampleLauncher.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Examples/ExampleLauncher.cs b/Source/Examples/ExampleLauncher.cs index 0efef5d9..3bfbe189 100644 --- a/Source/Examples/ExampleLauncher.cs +++ b/Source/Examples/ExampleLauncher.cs @@ -153,6 +153,7 @@ namespace Examples Debug.Print("Launching example: {0}", example.ToString()); this.Visible = false; + Application.DoEvents(); example.GetMethod("Main").Invoke(null, null);