KeyEventArgs
Alt
Control
KeyDown
private void Form1_KeyDown(object sender, KeyEventArgs e) { if (e.Alt || e.Control) { // do somethings } }
private void textBox1_KeyDown(object sender, KeyEventArgs e) { if (e.Control && e.Alt) { MessageBox.Show("Ctrl + Alt pressed"); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)