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


Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles Timer1.Tick
	Me.sweepAngle += 1
        If Me.sweepAngle = 360 Then
        End If
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)
End Sub

Recommended Answers

All 2 Replies

Move your code from Form1_Paint event to GroupBox1_Paint event.

Thank you so much .. that was fantastic


Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.