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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top