Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
4
Answers
keyboard input
phil67rpg
12y
1.1k
1
Reply
I have tried everything to get this code to work but to no avail,please help
here is the code
p
rivate
void
Form1_KeyPress(
object
sender,
KeyPressEventArgs
e)
{
if
(e.KeyChar ==
'a'
)
{
Application
.Exit();
e.Handled =
}
}
true
;
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
Programming Language
Invoking a delegate asynchronously