using System; using System.Windows.Forms; using System.Drawing; public class GetKeyCode:Form { public GetKeyCode() { this.KeyUp += new KeyEventHandler(KeyPress); } public void KeyPress(object sender, KeyEventArgs e) { MessageBox.Show(e.KeyCode.ToString(), "Code Key is:"); } public static void Main() { Application.Run(new GetKeyCode()); } }
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question