RadTextBox Return key behavior

2 posts, 1 answers
  1. Kipp
    Kipp avatar
    23 posts
    Member since:
    Sep 2012

    Posted 24 Feb 2013 Link to this post

    How do I get the RadTextBox to respond to the Return key by moving to the next control on the form?
  2. Answer
    Stefan avatar
    2908 posts

    Posted 27 Feb 2013 Link to this post

    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.

    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Back to Top