Results 1 to 5 of 5

Thread: Draw Circle In Picture Box With Fill

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    400

    Draw Circle In Picture Box With Fill

    How can I draw a circle into a picture box with a fill color? Thank you

  2. #2
    Cumbrian Milk's Avatar
    Join Date
    Jan 2007
    Location
    0xDEADBEEF
    Posts
    2,448

    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

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    400

    Re: Draw Circle In Picture Box With Fill

    I tried it but I don't see anything.

  4. #4
    Cumbrian Milk's Avatar
    Join Date
    Jan 2007
    Location
    0xDEADBEEF
    Posts
    2,448

    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

  5. #5
    PowerPoster ThEiMp's Avatar
    Join Date
    Dec 2007
    Location
    Take The PCI Bus Across To The CPU!!
    Posts
    3,948

    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
  •  



Click Here to Expand Forum to Full Width