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

Name control that is created at runtime. 1

Status
Not open for further replies.

grnzbra

Programmer
Mar 12, 2002
1,273
US
I am creating a control on a form at runtime using the CreateControl Method. However, I see nothing in that method that allows for the naming of the control. Is there any way to name the control that was just created?
 

Set ctrl = CreateControl(stFRmNam, acTextBox, , "", "", txtLeft, TxtTop, TxtWidth, TxtHeight)

ctrl.name = "namegoeshere
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top