Joke Collection Website - News headlines - After the coordinate system is established in vb, the coordinates (x, y) of a series of points are given. What statement can be used to draw these points onto the coordinate system?

After the coordinate system is established in vb, the coordinates (x, y) of a series of points are given. What statement can be used to draw these points onto the coordinate system?

Add a picture control on the form, set its length and height to the size you need, and then draw the coordinates of your points on it. I will only give an example of three points. For example, you want to connect them in a straight line.

The coordinates of point a (x1, y1), the coordinates of point b (x2, y2), the coordinates of point c (x3, y3), the name of the picture control is pic, then draw:

pic.Line(x1,y1)-(x2,y2), set the color of the line later

pic.Line(x2,y2)-(x3,y3), set the color of the line later

That’s probably it, and so on, give it a try.