static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Form1 myForm = new Form1(); InterceptKeys.OnKeyPressed = myForm.OnKeyPressed; InterceptKeys.Init(); Application.Run(myForm); InterceptKeys.Destory(); }