PDA

Click to See Complete Forum and Search --> : Double Line in VB


Jul 6th, 2000, 09:36 AM
Morning...

Anybody know how to do a double line in VB6 with
a PictureBox? I had thought that setting
DrawStyle to vbInsideSolid would do it, but
that is apparently not the case...

Help?

Jul 6th, 2000, 10:25 AM
You can write your own Function for it.


Private Function DLine(object As Object, X1 As Single, Y1 As Single, X2 As Single, Y2 As Single, iWidth As Long)

object.Line (X1, Y1)-(X2, Y2)
object.Line (X1, Y1 - iWidth)-(X2, Y2 - (iWidth + 10))

End Function


Usage:
DLine object, X1, Y1, X2, Y2, iWidth
[list]
object is any object that supports the Line method.(Such as the PictureBox).
The next 4 are the X and Y Coordinates of the Line.
And the next is by how much you want to separate the Lines by.
[/code]


DLine Picture1, 100, 100, 2500, 1200, 19