How can I draw a circle into a picture box with a fill color? Thank you
Printable View
How can I draw a circle into a picture box with a fill color? Thank you
Where Me could be a PictureBox nameCode:Me.FillStyle = vbFSSolid
Me.FillColor = vbRed
Me.Circle (1500, 1500), 150, vbBlack
I tried it but I don't see anything.
if you tried it in Form_Load add Show before the code. If you are not using the Paint Event (Form_Paint) set the Drawing object's AutoRedraw property to true. ;)
Edit: Oh if you've changed the Scalemode to pixels it's probably drawn off the form
You can fiddle around with the line of code that I am going to give to you and that is...
Picture1.Line