Bonjours,

Je cherche à détecter des combinaisons du genre "CTRL + b" dans un textbox.

J'ai fait çà mais çà ne fonctionne pas...
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";
        }
Quelqu'un sait il comment on gère plusieurs keypress?