apm825
asked on
Dynamically Creating Controls at Run time in VB6
How do you dynamically create Controls at Run time WIITHOUT using a control array. I want the control not to be on the form at design time...then create it dynanically at run time.
Thanks!
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi Tim
Am I Fast typist !!!!!
Am I Fast typist !!!!!
You were indeed quicker than me with effectively the same answer, do you want some points for it?
Dear Tim
Nice 2 meet U ..... even if U have my points ;-)
Nice 2 meet U ..... even if U have my points ;-)
Private Sub Form_Load()
Form1.Controls.Add "VB.CommandButton", "cmdObj1", Frame1
With Form1!cmdObj1
.Visible = True
.Width = 2000
.Caption = "Dynamic Button"
End With
End Sub