If isDrawing Then
Dim p As point
p.Initialize
p.x = x
p.y = y
p.r = strokewidth
path.pathlist.Add(p)
paintCVS.DrawCircle(p.x,p.y,p.r/2,path.color,True,0)
paintCVS.DrawLine(lastPoint.x,lastPoint.y,p.x,p.y,path.color,p.r)
paintCVS.Refresh
lastPoint.x = X
lastPoint.y = y
End If