P.T.A.M. Administrator

Joined: 08 Oct 2003 Posts: 752 Location: Greece
|
Posted: Oct 15th, 2003 08:50 AM Post subject: Create controls at runtime |
|
|
| Code: | Private Sub Form_Load()
Dim TXT As Control
Set TXT = Me.Controls.Add("VB.TextBox", "ControlName")
TXT.Text = "aaa"
TXT.Visible = True
TXT.Left = 100
TXT.Top = 100
TXT.Width = 1700
TXT.Height = 500
End Sub |
_________________ No one is completely useless. They can at least be an example of what to avoid. |
|