Is there a way to make a constructor for an activex object?

For example i want to make an activex control that will be basically a simple usercontrol and it will take different shapes with the setwindowrgn api.

Now i want to do something like this from my form
VB Code:
  1. dim CIRCLE_VALUES as new Collection
  2. CIRCLE_VALUES.add 0  'x1
  3. CIRCLE_VALUES.add 0  'y1
  4. CIRCLE_VALUES.add 10 'x2
  5. CIRCLE_VALUES.add 10 'y2
  6.  
  7.  
  8.  
  9.  
  10. dim newctl=new ShapeUserControl("Circle",CIRCLE_VALUES)
now when the ShapeUserControl is appearing on the form i want to do something like this:
VB Code:
  1. if Shape_Type="Circle" then
  2.  
  3. hRgn=CreateEllipticRgn CIRCLE_VALUES.item(1),CIRCLE_VALUES.item(2) .........
  4. SetWindowRgn me.hwnd,hrgn,true
  5.  
  6. elseif Shape_Type="Polygon" then
  7.  
  8. hRgn=CreatePolygonRgn .....
  9. SetWindowRgn me.hwnd,hrgn,true