Hello,
How can i activate enter key to act like tab on textfields?
Thank you in advance.
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.
Kirtan PatelPosted Oct 6, 2009, 6:17 AM
Dont forget to mark "Do you like answer" please :) it will give me some credits :)
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == '\r')
{
e.Handled = true;
SendKeys.Send("{TAB}");
}
}
If Getting Problem let me know :)
Thank you :)
nitin murkutePosted Oct 6, 2009, 6:10 AM
You have to monitor keypress event of the textbox and on enter key press set the focus to next control.
This has to be done using javascript.
HTH