Please i have a problem that i want to read numbers in arrays(2 arrays) and Draw Curve with this Numbers .first array is x axis and second array is y axis. and x,y axis appears in the graph as in custom component.
please can anybody help me
thank you

Vb.Net 2003
Beginer user
The easiest way to do this is to create a form with a picture box on it, and then use the Graphics class to draw in the picture box inside its Paint event handler.
I've provided a sample below. It creates an array of point structures and then passes them off to the DrawCurve method of the picture box's paint control. The sample just draws a simple curve. In your case, rather than recreating an array of point structures each time, you would want to have a member on your form that stores the array of points and then pass that off to the DrawCurve method. You could then load your data into the forms point array.
Private Sub PictureBox1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint
Dim points(3) As Point
points(0) = New Point(1, 1)
points(1) = New Point(10, 10)
points(2) = New Point(20, 5)
points(3) = New Point(30, 20)
e.Graphics.DrawCurve(Pens.Black, points)
End Sub
-Scott Wisniewski