Ok, so far I can draw the arcs where I need them, but this will not be good
unless I can clear the area to make the rounded corners. This is what I have
so far.
I think I need to do some kind of clipping on a pie area with the arc so the corners will appear rounded.VB Code:
Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs) 'Set background to white e.Graphics.FillRectangle(Brushes.White, Me.ClientRectangle) 'Create pen. Dim BlackPen As New Pen(Color.Black, 1) 'Create left rectangle to bound ellipse. Dim rLeft As New Rectangle(0, 0, 15, 15) 'Create start and sweep angles on ellipse. Dim aStartL As Single = 180.0F Dim aSweepL As Single = 90.0F 'Draw left arc to screen. e.Graphics.DrawArc(BlackPen, rLeft, aStartL, aSweepL) 'Duplicate for right Dim rRight As New Rectangle(Me.Width - 15, 0, 15, 15) Dim aStartR As Single = 270.0F Dim aSweepR As Single = 90.0F e.Graphics.DrawArc(BlackPen, rRight, aStartR, aSweepR) MyBase.OnPaint(e) End Sub





Reply With Quote