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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting focus on a control created through controls.add

Status
Not open for further replies.

Trebor100

Programmer
Mar 14, 2006
90
GB
Hi - very quick (and hopefuly easy) question.

How do I set focus to a control that has been created through controls.add as the txtBox.focus() is not there?

many thanks.
T
 
create control
add to form
call control.Focus();

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top