I have my control here, and when the control isn't drawing selected, it has a random notch in the border(as illustrated in the attached photo). It uses a graphics path which is generally used all around so nothing changes there. Other than the fact the control is marked "selected"(which only effects the colors).
Here's the code that generates my graphics path...
vbnet Code:
Private ReadOnly Property gp As GraphicsPath
Get
Dim output As New GraphicsPath
output.AddArc(New Rectangle(New Point(3, 2), New Size(20, 20)), 180, 80)
output.AddArc(New Rectangle(New Point(Me.Width - 23, 2), New Size(20, 20)), 270, 80)
output.AddLine(New Point(Me.Width - 2, Me.Height - 1), New Point(2, Me.Height - 1))
output.AddLine(New Point(2, Me.Height - 1), New Point(3, 10))
Return output
End Get
End Property
I'm hoping someone knows why this may be occurring.. It has happened before to but never was able to solve it.
Maybe if it was less noticeable I wouldn't care, but since the notch occurs in the middle of a dark gray section really makes it stick out like a sore thumb.