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
Post a Comment