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

Create Control in run time

Status
Not open for further replies.

oigo

Programmer
Apr 27, 2002
23
0
0
CO
Hi, How I Create a Control, for example a textbox, in run time.

thanks
 
Option Explicit

Dim WithEvents txtMain As TextBox

Private Sub Form_Load()
'Create and Set Up Controls
Set txtMain = Me.Controls.Add("vb.textbox", "txtMain", Me)
txtMain.Text = ""
txtMain.Visible = True Eric De Decker
vbg.be@vbgroup.nl

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top