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

Move your code from Form1_Paint event to GroupBox1_Paint event.

Thank you so much .. that was fantastic


cheers
Ashwin

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.