How to set focus to a control withint a RadTabStrip?

3 posts, 1 answers
  1. joseph_korn
    joseph_korn avatar
    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?
  2. Answer
    Boyko Markov
    Admin
    Boyko Markov avatar
    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. joseph_korn
    joseph_korn avatar
    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