VB.net erase line between two points
Posted on 2012-04-03
Hi. I use the following code to draw a line between two points on a TreeView. What code would I use to clear this line
Dim Gr As Graphics = Me.TreeView_From.CreateGraphics()
' Create pen.
Dim blackPen As New Pen(Color.DarkOrange, 2)
' Draw line to screen.
Gr.DrawLine(blackPen, oFrom_Point, oTo_Point)