|
-
Jun 15th, 2004, 03:21 PM
#1
Thread Starter
Lively Member
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?
-
Jun 15th, 2004, 03:28 PM
#2
Frenzied Member
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.
-
Jun 15th, 2004, 03:34 PM
#3
Thread Starter
Lively Member
Im sorry, But I need to be able to draw circles where ever I need them on the form. Any Ideas?
-
Jun 15th, 2004, 03:54 PM
#4
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|