You may create controls in run time using this short code
You may create controls in run time using this short code
Rate You may create controls in run time using this short code
(2(2 Vote))
Private Sub cmdCreate_Click()
'create the object command button
Set NewObject = Controls.Add("VB.CommandButton", "MyControls")
'set properties of the new added control
NewObject.Visible = True
NewObject.Caption = "here"
NewObject.Left = 500
NewObject.Top = 1000
NewObject.Height = 1000
End Sub
You may create controls in run time using this short code Comments
No comments yet — be the first to post one!
Post a Comment