With given coordinate index how can a Bézier curve be made in VB using a standard picture box to plot the points?

eg.

VB Code:
  1. Sub BezierThis(NumberofPoints as integer, TheseXY() as POITAPI)
  2. For i = 0 to NumberofPoints - 1
  3.  DoSomething
  4.  pic1.pset (curvepoints), vbBlack
  5. Next i
  6. End Sub

Any ideas?