This is a migrated thread and some comments may be shown as answers.

RadTextBox Return key behavior

1 Answer 417 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Kipp
Top achievements
Rank 1
Kipp asked on 24 Feb 2013, 03:28 PM
How do I get the RadTextBox to respond to the Return key by moving to the next control on the form?

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 27 Feb 2013, 02:44 PM
Hello Kipp,

Thank you for writing.

You can use the KeyDown event of the control, where you can use the SelectNextControl method:
void radTextBox1_KeyDown(object sender, KeyEventArgs e)
{
    if (e.KeyData == Keys.Enter)
    {
        this.SelectNextControl(this.ActiveControl, true, true, true,true);
    }
}      

I hope this helps.

Regards,
Stefan
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Tags
TextBox
Asked by
Kipp
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or