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
HOw to handle key board events
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Stefan138 reputationPosted Mar 19, 2009, 11:37 AM EDT
if (e.KeyChar == 13)
{
Form2 frm = new Form2();
frm.Show();
}
Hope this helps,
Stefan.
Ryan AlfordRank #1,411 · 1.2K reputationPosted Mar 20, 2009, 8:07 AM EDT