PLease I want to learn how to handle keyboard events in c#.net
so that if i hit the enter key then a form shows .
please add codes
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ryan AlfordPosted Mar 20, 2009, 12:07 PM
StefanPosted Mar 19, 2009, 3:37 PM
if (e.KeyChar == 13)
{
Form2 frm = new Form2();
frm.Show();
}
Hope this helps,
Stefan.