Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Drawing a shape in VB 6
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
sport




PostPosted: 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
Sponsor
sponsor
Brightguy




PostPosted: 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




PostPosted: Mon Mar 07, 2005 7:50 pm   Post subject: (No subject)

Thanks
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: