Open form with cursor in text box ready to receive input

  • Thread starter Thread starter Terry Olsen
  • Start date Start date
T

Terry Olsen

I want my form to open with the cursor blinking in a text box ready for the
user to start typing. I tried using the txtBox.focus() method in the
Form_Load event but that doesn't work. Any suggestions?
 
First in the Form's designer, set the textboxes TAB INDEX to 0. Then the
rest of your code should work. Providing you don't have any other control's
TAB INDEX set to 0.
james
 
* "Terry Olsen said:
I want my form to open with the cursor blinking in a text box ready for the
user to start typing. I tried using the txtBox.focus() method in the
Form_Load event but that doesn't work. Any suggestions?

Assign the lowest 'TabIndex' to the textbox.
 
Back
Top