Is there any way to change a label's border color at runtime? I use the following code to create two labels, one horizontal and the other vertical. They are designed to make a cross symbol wherever I click on an image control. This works great, but I need them to be red instead of the default grey.
Set Lbl = Controls.Add("Forms.Label.1", "lblLabel" & NumAnnuli, True)
With Lbl
.Top = Y
.Left = X - 6
.Height = 1
.Width = 12
End With
Set Lbl = Controls.Add("Forms.Label.1", "lblLabel" & NumAnnuli, True)
With Lbl
.Top = Y - 6
.Left = X
.Height = 12
.Width = 1
End With
Bookmarks