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

RadTextBox.Focus()

1 Answer 264 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Jeremy Murtishaw
Top achievements
Rank 1
Jeremy Murtishaw asked on 30 Jun 2009, 04:11 AM
Hello Telerik support,

I realize this was discussed on this forum back in June '07, but didn't reach a conclusion.  I'm trying to simply set input focus to a radTextBox like so:

private

void Form_Load(object sender, EventArgs e)

 

{
    this.radTextBox.Focus();

}

The cursor does not get set onto the radTextBox.  What needs to be done here?


Thanks!
Jeremy

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 02 Jul 2009, 04:00 PM

Hi Jeremy Murtishaw,

In order to set the focus to a RadTextBox when the form is loaded, please call its Select() method:

private void Form_Load(object sender, EventArgs e)   
{  
    this.radTextBox.Select();  


If you have additional questions, feel free to contact me.

Regards,

Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
TextBox
Asked by
Jeremy Murtishaw
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or