Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » Classic Visual Basic (VB 6 or earlier) » General Visual Basic » PictureBox.Circle


PictureBox.CircleExpand / Collapse
Author
Message
Posted 10/12/2004 10:54:33 AM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum God

Group: Forum Members
Last Login: 1/27/2008 2:50:27 PM
Posts: 334, Visits: 16
im using this: (my pic box is called picGraph)

picGraph.Circle (x, y), r, vbBlue

unfortunately i cant find much about this, this colors the border blue with no fill, i want to have an opaque circle...know how to do this?


Milo

Milo!

Post #4916
Posted 10/12/2004 5:33:10 PM
Forum God

Forum God

Group: Moderators
Last Login: Yesterday @ 1:42:32 PM
Posts: 1,073, Visits: 9,408

You need to set the FillColor and FillStyle for the object that you are drawing your circle on.

Private Sub Command1_Click()
    With picGraph
        .FillColor = vbRed
        .FillStyle = vbFSSolid
    End With
    picGraph.Circle (1000, 1000), 750, vbBlue
       
End Sub

Post #4929
Posted 10/13/2004 4:30:04 AM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum God

Group: Forum Members
Last Login: 1/27/2008 2:50:27 PM
Posts: 334, Visits: 16
ahh, excellent!! **Milo thinks..."why didnt I think of that??"...muh?!**

lol cheers!

Milo

Milo!

Post #4943
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Admin, Mod, Mark, Keithuk

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 4:02am