How can i move on controls on enter click
in windows forms
Moving on enter click
4 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
Mayur GujrathiRank #666 · 3.6K reputationPosted Apr 28, 2011, 12:05 AM EDT
protected override bool ProcessDialogKey(Keys keyData)
{
switch (keyData)
{
case Keys.Enter:
return base.ProcessDialogKey(Keys.Tab);
}
return base.ProcessDialogKey(keyData);
}
Rahul Patil16 reputationPosted Apr 28, 2011, 12:07 AM EDT
Mayur GujrathiRank #666 · 3.6K reputationPosted Apr 28, 2011, 12:12 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Apr 28, 2011, 12:13 PM EDT