Results 1 to 4 of 4

Thread: Easy ways to draw a circle

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2004
    Posts
    73

    Easy ways to draw a circle

    Lets say I create a new form. WHat is the easiest way to create a program to draw solid circles?

  2. #2
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618
    Wax pencil on the screen? Seriously though, I would look into the GDI+. (system.drawing)

    Private Sub Form1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Click
    ' Create a Pen object.
    Dim pen As New Drawing.Pen(System.Drawing.Color.Red, 1)
    Me.CreateGraphics.DrawEllipse(pen, 0, 0, 100, 100)
    Pen.Dispose
    End Sub
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2004
    Posts
    73
    Im sorry, But I need to be able to draw circles where ever I need them on the form. Any Ideas?

  4. #4
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618
    I guess I'm not following....the second and third param are x and y coordinates. That should let you draw it anywhere on the form.
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

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