Lets say I create a new form. WHat is the easiest way to create a program to draw solid circles?
Printable View
Lets say I create a new form. WHat is the easiest way to create a program to draw solid circles?
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
Im sorry, But I need to be able to draw circles where ever I need them on the form. Any Ideas?
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.