Пример #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     //Application.Run(new TestForm());
     using (kh = new KeyboardHook( ))
     {
         frm_splash the_splash = new frm_splash();
         the_splash.Show();
         Application.Run(new frm_main());
         //Application.Run(new debugform());
     }
 }
Пример #2
0
 private void kh_KeyIntercepted(KeyboardHook.KeyboardHookEventArgs e)
 {
     if (e.KeyName.ToLower() == "f11") this.ShowQsForm();
     else if (e.KeyName.ToLower() == "f12") this.ShowAbForm();
 }