How to activate the cursor in TextBox1

I would like to have the program activate the cursor in TextBox1, so the user can start typing immediately without having to first click on TextBox1.

Answer this question

How to activate the cursor in TextBox1

  • intGod

    Or try textbox1.focus() on the form's load event

  • cliffeh

    Try changing textbox1's tabindex property to 1.

    or

    you can make a sub that handles form1.load and in that use

    textbox1.select



  • Ricky Wen - MSFT

    TextBox1.Select did the trick! ! !

    Thanks a lot, guys!


  • How to activate the cursor in TextBox1