KeyDown : recognizing multiple keys
问题 How can I determine in KeyDown that Ctrl Up was pressed. private void listView1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Control && e.KeyCode == Keys.Up) { //do stuff } } can't work, because never both keys are pressed exactly in the same second. You always to at first the Ctrl and then the other one... 回答1: You can check the modifiers of the KeyEventArgs like so: private void listView1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Up && e.Modifiers ==