In the examples I can find about 'Fillpolygon' its always drawn with a known numer of points (see example below).
How do I handle this if I don't know the number of points,,,say, I read the number of points and coordinates from at different file, every time I run the program
Example:
Public Sub FillPolygonPoint(ByVal e As PaintEventArgs)
Dim blueBrush As New SolidBrush(Color.Blue)
Dim point1 As New Point(50, 50)
Dim point2 As New Point(100, 25)
Dim point3 As New Point(200, 5)
Dim curvePoints As Point() = {point1, point2, point3}
.
e.Graphics.FillPolygon(blueBrush, curvePoints)
End Sub

Fillpolygon-unknown number of points
aKzenT