Dim g As Graphics = e.Form.Controls("panel1").BaseControl.CreateGraphics'g.Clear(Color.red)Dim mpen As New Pen(Color.Red)Dim p1 As Point = New Point(10, 80)Dim p2 As Point = New Point(10, 160)g.DrawLine(mpen, p1, p2)
http://www.foxtable.com/help/topics/1482.htm