newguy
Well-known member
I am new to graphics, I am playing with the GraphicsPath. It was working fine, but now it gives me the above exception after drawing 1 figure.
I even used Using/End Using same problem. This is based on an example I found.
VB.NET:
'Mouse Down
mousePath.StartFigure()
'Mouse Move
mousePath.AddLine(e.X, e.Y, e.X, e.Y)
pb1.Invalidate()
'Paint event
Dim draw_pen As New Pen(Color.Navy, 2)
e.Graphics.DrawPath(draw_pen, mousePath)
draw_pen.Dispose()
I even used Using/End Using same problem. This is based on an example I found.