Results 1 to 10 of 10

Thread: [RESOLVED] Random "notch" in my user-drawn control.

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member DavesChillaxin's Avatar
    Join Date
    Mar 2011
    Location
    WNY
    Posts
    451

    Resolved [RESOLVED] Random "notch" in my user-drawn control.

    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:
    1. Private ReadOnly Property gp As GraphicsPath
    2.         Get
    3.             Dim output As New GraphicsPath
    4.  
    5.             output.AddArc(New Rectangle(New Point(3, 2), New Size(20, 20)), 180, 80)
    6.             output.AddArc(New Rectangle(New Point(Me.Width - 23, 2), New Size(20, 20)), 270, 80)
    7.             output.AddLine(New Point(Me.Width - 2, Me.Height - 1), New Point(2, Me.Height - 1))
    8.             output.AddLine(New Point(2, Me.Height - 1), New Point(3, 10))
    9.  
    10.             Return output
    11.         End Get
    12. 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.
    Attached Images Attached Images  
    Last edited by DavesChillaxin; Jan 26th, 2012 at 01:08 PM.
    Please rate if my post was helpful!
    Per favore e grazie!




    Code Bank:
    Advanced Algebra Class *Update | True Gradient Label Control *Dev | A Smarter TextBox *Update | Register Global HotKey *Update
    Media Library Beta *Dev | Mouse Tracker (Available in VB.net and C#.net) *New | On-Screen Numpad (VB.net) *New

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width