c# simple key press detection -


i want detect (as simple posible) "ctrl+o" keys , show message. tried: enter link description here enter link description here

and other 4 links, cannot show you. please help.

try this. worked me.

private void form1_keydown(object sender, keyeventargs e) {      if (e.modifiers == keys.control && e.keycode.tostring() == "o")     {         messagebox.show("ctrl + o pressed");     } } 

Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -