Пример #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            using (kh = new KeyboardHook()) //create keyboard hook obj, diff from C++
            {
                using (mh = new MouseHook())
                {
                    Application.Run(new Form1());
                }
            }
        }