KeyPressEventArgs(Char) Constructeur
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la classe KeyPressEventArgs.
public:
KeyPressEventArgs(char keyChar);
public KeyPressEventArgs(char keyChar);
new System.Windows.Forms.KeyPressEventArgs : char -> System.Windows.Forms.KeyPressEventArgs
Public Sub New (keyChar As Char)
Paramètres
- keyChar
- Char
Caractère ASCII correspondant à la touche enfoncée par l’utilisateur.
Exemples
L’exemple suivant affiche une boîte de message qui affiche l’état actuel de la touche MAJ.
Remarques
Utilisez la propriété pour obtenir l’état Control.ModifierKeys actuel des touches de modificateur.