by deepti (2 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 17th September 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)
creating a commandbutton and textbox with the help of coding
API Declarations
Private WithEvents command As CommandButton
Private Sub Form_Load()
Set text1 = Form1.Controls.Add("vb.textbox", "command1")
Set command = Form1.Controls.Add("vb.commandbutton", "text")
text1.Visible = True
text1.Top = 1000
text1.Width = 500
command.Visible = True
command.Caption = "ok"
End Sub