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