diff --git a/Demo.WindowsForms/Source/Program.cs b/Demo.WindowsForms/Source/Program.cs --- a/Demo.WindowsForms/Source/Program.cs +++ b/Demo.WindowsForms/Source/Program.cs @@ -31,8 +31,8 @@ namespace Demo.WindowsForms windowGUI = new MainForm(); program.SerialInitialize(); Application.EnableVisualStyles(); - - Application.Run(new MainForm()); + + Application.Run(windowGUI); } //inits the serial port and event handler