is there a way to detect all the key pressed in keydown event of the form? For example im currently pressing CRTL + Alt + A can i get all the keys in keydown event? i need to get all the keys to create my own hot keys in my currently developing application
You can check for all keys in event arguments
private void Form1_KeyDown(object sender, KeyEventArgs e) { if (e.Alt && e.Control && e.KeyCode == Keys.A) { //do something } }
1.4m articles
1.4m replys
5 comments
57.0k users