how can i draw shapes on a picture box?
picture control
Collapse
X
-
Presuming you are using VB6,
Here is the code for drawing a horizontal line and a circle.
The syntax works as so:Code:Picture1.Line (500, 100)-(2000, 100) Picture1.Circle (1000, 1000), 200
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