4
Answers

keyboard input

phil67rpg

phil67rpg

12y
1.1k
1
I have tried everything to get this code to work but to no avail,please help
here is the code
private void Form1_KeyPress(object sender, KeyPressEventArgs e)

{

if (e.KeyChar == 'a')

{

Application.Exit();

e.Handled =

}

}



true;

Answers (4)