Private Sub Command1_Click()
Call DrawBorder(Label1, vbRed)
End Sub
Private Sub DrawBorder(lbl As Label, Color As OLE_COLOR)
With lbl
Me.Line (.Left, .Top)-(.Left + .Width - Screen.TwipsPerPixelX, .Top + .Height - Screen.TwipsPerPixelY), Color, B
End With
End Sub
If a label is plaleced in a container like a Frame or a Tab control which dont have Line method, how can draw a line in this case?