Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21236

Drawing in Containers without Line Method

$
0
0
Quote:

Originally Posted by Frans C View Post
Code:

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?

Viewing all articles
Browse latest Browse all 21236

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>