To catch the hot key Ctrl+A, we can use following statement in Form1_KeyDown.
if (e.Modifiers == Keys.Control && e.KeyCode == Keys.A)
{
MessageBox.Show("Test");
}
To catch Ctrl+Alt+A, we can use:
if (e.Control && e.Alt)
{
if (e.KeyCode == Keys.A)
{
// Your code goes here
}
}
The question is how to catch the hot key like Ctrl+A+B?