Bonjours,
Je cherche à détecter des combinaisons du genre "CTRL + b" dans un textbox.
J'ai fait çà mais çà ne fonctionne pas...
Quelqu'un sait il comment on gère plusieurs keypress?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 private void txtContent_KeyDown(object sender, System.Windows.Input.KeyEventArgs e) { string temp; if (e.Key == Key.A && e.Key == Key.B) temp = "coucou"; }
Partager