
-----------------------------------
sport
Sun Mar 06, 2005 9:20 pm

Drawing a shape in VB  6
-----------------------------------
Hey could anyone please tell me the syntax to draw a rectangle in VB 6. Thanks

-----------------------------------
Brightguy
Mon Mar 07, 2005 9:30 am

Re: Drawing a shape in VB  6
-----------------------------------
This is done with the Line method.  It basically follows this syntax:
object.Line (x1, y1)-(x2, y2), lngColour, B
If you want a filled rectangle, replace B with BF.  Remove B if you just want to draw a line.
Also, usually you'll want to enable the AutoRedraw property of the object before drawing anything.

-----------------------------------
sport
Mon Mar 07, 2005 7:50 pm


-----------------------------------
Thanks
