-5

I want to detect (as simple as posible) the "ctrl+o" keys and then show up a message. I tried: enter link description here enter link description here

and other 4 links, I cannot show you. Please help.

Community
  • 1
  • 1

1 Answers1

0

Try this. It worked for me.

private void Form1_KeyDown(object sender, KeyEventArgs e)
{
     if (e.Modifiers == Keys.Control && e.KeyCode.ToString() == "O")
    {
        MessageBox.Show("ctrl + o pressed");
    }
}
Zalatik
  • 483
  • 5
  • 11