hello,
im drawing a line on a form with has a couple of labels now the first problem that im having is that the line when drawn goes behind the labels whereas i want it to be over them
second when i scroll the page the line repeats itself showing multiple lines i dont want that to happen
the code that im using is
Public Sub DrawGWT(ByVal yVal As Integer)
Dim g As Graphics = Me.CreateGraphics()
Dim myPen As New Pen(Color.Blue, 2)
g.DrawLine(myPen, 12, 344 + yVal, 100, 344 + yVal)
End Sub
please help me
im drawing a line on a form with has a couple of labels now the first problem that im having is that the line when drawn goes behind the labels whereas i want it to be over them
second when i scroll the page the line repeats itself showing multiple lines i dont want that to happen
the code that im using is
Public Sub DrawGWT(ByVal yVal As Integer)
Dim g As Graphics = Me.CreateGraphics()
Dim myPen As New Pen(Color.Blue, 2)
g.DrawLine(myPen, 12, 344 + yVal, 100, 344 + yVal)
End Sub
please help me