'Drawing Line in VB is very easy, it can be done as follows
Dim drawLineGraph As System.Drawing.Graphics
curvegraph = Graphics.FromHwnd(CurvePic().Handle)
' CurvePic is picture box
curvegraph.DrawLine(pen:=New Pen(Brushes.Blue), x1:=x1, y1:=y1, x2:=x2, y2:=y2)
'x1,x2 and y1,y2 are computer coordinate of starting point and ending point of line.
No comments:
Post a Comment
If the contents is insufficient or if there any error, please write here....
Suggestion are welcome: