All Products
Demos
Pricing
Blogs
Docs & Support
Search
Shopping cart
Login
Contact Us
Get A Free Trial
close mobile menu
Telerik Forums
/
UI for WinForms Forum
/
Tabstrip (obsolete as of Q2 2010)
/
How to set focus to a control withint a RadTabStrip?
Cancel
Telerik UI for WinForms
Resources
Buy
Try
Thread is closed for posting
Feed for this thread
3 posts, 1 answers
joseph_korn
21 posts
Member since:
Apr 2007
Posted 13 May 2008
Link to this post
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?
Answer
Boyko Markov
Admin
610 posts
Posted 15 May 2008
Link to this post
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
joseph_korn
21 posts
Member since:
Apr 2007
Posted 15 May 2008
Link to this post
txtbox.select() works great! Thanks! I knew it was something easy..
Back to Top