Posted: Sun Mar 06, 2005 9:20 pm Post subject: Drawing a shape in VB 6
Hey could anyone please tell me the syntax to draw a rectangle in VB 6. Thanks
Sponsor Sponsor
Brightguy
Posted: Mon Mar 07, 2005 9:30 am Post subject: Re: Drawing a shape in VB 6
This is done with the Line method. It basically follows this syntax:
code:
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
Posted: Mon Mar 07, 2005 7:50 pm Post subject: (No subject)