예제 #1
0
 static void app_KeyPressed(object sender, KeyPressedEventArgs e) // 事件,有两个参数,sender是实例,KeyPressedEventArgs 是指按键信息
 {
     Console.WriteLine("按下了{0}", e.PressedKey.ToString());
 }