Add a control programmatically
Programmatically add a label to the form and set its caption
Dim objControl As Label
Set objControl = Controls.Add("VB.Label", "lblNewLabel", Me)
With objControl
.Caption = "Add a label"
.Left = 100
.Top = 100
.Visible = True
End With
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.