picture control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • didz
    New Member
    • Aug 2006
    • 1

    #1

    picture control

    how can i draw shapes on a picture box?
  • Ste The Fluffy
    New Member
    • Sep 2006
    • 10

    #2
    Presuming you are using VB6,
    Here is the code for drawing a horizontal line and a circle.

    Code:
    Picture1.Line (500, 100)-(2000, 100)
    Picture1.Circle (1000, 1000), 200
    The syntax works as so:

    Picture1.Line(S tartingX,Starti ngY) - (EndX,EndY)
    Picture1.Circle (X,Y), Diameter.

    I advise putting this code into a command button or something.

    Hope this helps :)

    Comment

    Working...