Hi Guys,

i have this code which draws a continuous circle using a timer.
Now I have to display it in the form which has a group box with loads of other
fields and information. Now can anyone please tell me how can i add the circle
into the group box as it can be displayed. Currently the circle is being displayed
behind the group box which is not visible.

Thank you so much

Ashwin

Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles Timer1.Tick
	Me.sweepAngle += 1
        If Me.sweepAngle = 360 Then
		Me.Timer1.Stop()
        End If
        Me.Refresh()
End Sub



Private Sub Form1_Paint(ByVal sender As Object, _
             ByVal e As PaintEventArgs) Handles Me.Paint
	e.Graphics.DrawPie(Pens.Black, 150, 0, 48, 48, 90, Me.sweepAngle)
	'me.groubox1.content.add(???)
End Sub

Edited 5 Years Ago by WolfPack: Not a code snippet.

Move your code from Form1_Paint event to GroupBox1_Paint event.

Edited 5 Years Ago by codeorder: n/a

This question has already been answered. Start a new discussion instead.