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

How to set focus to a control withint a RadTabStrip?

2 Answers 176 Views
Tabstrip (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
joseph_korn
Top achievements
Rank 1
joseph_korn asked on 13 May 2008, 10:54 PM
Hopefully an easy question.. I would normally use me.textbox1.focus() to set focus to a textbox control when first opening a form so that the user does not have to click into the box to begin typing.. When I put my controls onto a RadTabStrip, and at the very last line of the form_load event I try to set focus to a control in this way, it does not work.. After the form is loaded I can get the focus to work.. For example, on button click.. But for whatever reason it refuses to work on form_load for all forms in my project.. What am I doing wrong?

2 Answers, 1 is accepted

Sort by
0
Accepted
Boyko Markov
Telerik team
answered on 15 May 2008, 03:55 PM
Hi joseph_korn,

Have you tried the following:

this
.radTextBox1.Select();

I've tested it and it works in my application. Please write me back with more details if this does not help.

 
Regards,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
joseph_korn
Top achievements
Rank 1
answered on 15 May 2008, 04:42 PM
txtbox.select() works great! Thanks! I knew it was something easy..
Tags
Tabstrip (obsolete as of Q2 2010)
Asked by
joseph_korn
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
joseph_korn
Top achievements
Rank 1
Share this question
or