- Регистрация
- 15.05.2017
- Сообщения
- 436
- Благодарностей
- 104
- Баллы
- 43
Need a script to return false if letter "A" pressed on the keyboard and True if letter "B" is pressed on the keyboard, please help
C#:
System.Windows.Forms.Form F = new System.Windows.Forms.Form ();
F.KeyDown + = new System.Windows.Forms.KeyPressEventHandler (delegate (object sender, System.Windows.Forms.KeyEventArgs e) {
if (e.KeyCode == Keys.Escape)
{
Console.Beep (800, 500); // signal frequency and duration, ms
}
});