static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); homegenie.SetServer(hgServerAddress, hgServerUser, hgServerPassword); smartcontrol = new SmartControl(); Application.Run(smartcontrol); }