Exemplo n.º 1
0
 private void checkBox1_CheckedChanged(object sender, EventArgs e)
 {
     if (checkBox1.Checked)
     {
         vKey = new KeyHandler(Keys.V, this, 2);
         vKey.Register(KeyHandler.MOD_CONTROL);
     }
     else if (vKey != null)
     {
         vKey.Unregister();
     }
 }
Exemplo n.º 2
0
 void setHotKey(Keys key)
 {
     hotKey = new KeyHandler(key, this, 1);
     hotKey.Register();
 }