static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); form = new LightsForm(); new Action(ControlMethod).BeginInvoke(null, null); Application.Run(form); }