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

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -