Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set focus to a text box

Status
Not open for further replies.

vedicman

Programmer
Sep 5, 2003
128
0
0
US
What is the code to give focus to a specific text box programmatically?

Thanks.....Franco
 
Hi Franco,

you do ;

Code:
Form.Control.Focus()

Hope this helps, Mark
 
or
Code:
textbox1.select

wich ever works best for you.

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top