title: Drawing Polygon with multiple points
body: <p>I am trying to draw polygon from a string entered by user:<br>
  e.g. (0 0),(10 10),(20 20),(0 0)....n  </p>
  
  <p>Parsed the string as under:  </p>
  
  <pre><code>Dim I As Integer, A0 As String, A1 As String(), X1 As Double, Y1 As Double, X2 As Double, Y2 As Double
      Dim MyChar() As Char = {"(", ")"}
  
      For I = 1 To sites.Length - 1 Step 1
  
          A0 = sites(I - 1)                 
          A0 = A0.TrimStart(MyChar)
          A0 = A0.TrimEnd(MyChar)
          A1 = A0.Split(" ")
          X1 = Val(A1(0))
          Y1 = Val(A1(1))
  
          A0 = sites(I)
          A0 = A0.TrimStart(MyChar)
          A0 = A0.TrimEnd(MyChar)
          A1 = A0.Split(" ")
          X2 = Val(A1(0))
          Y2 = Val(A1(1))
  </code></pre>
  
  <p>Now I want to draw line from x1,y1 and x2,y2 in each iteration so it complete the polygon<br>
  Next<br>
  I am unable to draw lines. Please help in using drawline method/draw polygon method that takes parameters from array.</p>