?
=?ISO-8859-15?Q?Roland_M=FCller?=
Hello,
i know how to get a simple keyboard combination, but how to detect a
combination of keyboard combination, pressing STRG+N and P?
This does not work:
private void MdiParentForm_KeyDown(object sender, KeyEventArgs e) {
Debug.WriteLine(e.KeyData);
switch(e.KeyData) {
case Keys.Control|Keys.N|Keys.P:
MessageBox.Show("test");
break;
}
}
Any help?
Thanks in advance, Roland!
i know how to get a simple keyboard combination, but how to detect a
combination of keyboard combination, pressing STRG+N and P?
This does not work:
private void MdiParentForm_KeyDown(object sender, KeyEventArgs e) {
Debug.WriteLine(e.KeyData);
switch(e.KeyData) {
case Keys.Control|Keys.N|Keys.P:
MessageBox.Show("test");
break;
}
}
Any help?
Thanks in advance, Roland!