|
-
Jan 19th, 2008, 08:30 PM
#1
Thread Starter
Hyperactive Member
Draw Circle In Picture Box With Fill
How can I draw a circle into a picture box with a fill color? Thank you
-
Jan 19th, 2008, 09:16 PM
#2
Re: Draw Circle In Picture Box With Fill
Code:
Me.FillStyle = vbFSSolid
Me.FillColor = vbRed
Me.Circle (1500, 1500), 150, vbBlack
Where Me could be a PictureBox name
-
Jan 19th, 2008, 09:37 PM
#3
Thread Starter
Hyperactive Member
Re: Draw Circle In Picture Box With Fill
I tried it but I don't see anything.
-
Jan 19th, 2008, 09:42 PM
#4
Re: Draw Circle In Picture Box With Fill
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
-
Jan 20th, 2008, 12:17 AM
#5
PowerPoster
Re: Draw Circle In Picture Box With Fill
You can fiddle around with the line of code that I am going to give to you and that is...
Picture1.Line
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|