static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Spy spy = new Spy(); Form form1 = new Form1(); spy.regist(form1); Application.Run(form1); }