
GraphPath.AddArc(Rect.X + Rect.Width - w2 - radius, GraphPath.AddArc(Rect.X + Rect.Width - radius - w2, Rect.Y + w2, radius, GraphPath.AddArc(Rect.X + w2, Rect.Y + w2, radius, radius, 180, 90)
GraphicsPath GraphPath = new GraphicsPath() Math.Min(Rect.Width, Rect.Height)) - width), 1) GraphicsPath GetRoundPath(RectangleF Rect, int radius, float width) There are three methods that are worth showing:
BorderDownColor " - specifies the color of edge when button triggers the event " OnMouseDown""Īdditionally, the inherited properties " BackColor", " FlatAppearance.MouseDownBackColor" or FlatAppearance.MouseOverBackColor" can be used to specify the Back Color in the possible states of button. BorderDownWidth " - specifies the width of edge when button triggers the event " OnMouseDown"". BorderOverColor " - specifies the color of edge when mouse is over button.". BorderOverWidth " - specifies the width of edge when mouse is over button.". BorderColor " - specifies the color of edge.". BorderWidth " - specifies the width of edge.". BorderRadius " - how far is the edge of the button rounded.". My class " RoundedButton" which inherits from " " contains a list of new properties that let customize the look of the button and it has some methods overridden.
Though I say it myself, I think the buttons look nice - you'll have to judge for yourself! I "almost" finished it, I guess that it can have more features but it works for my particular case, so I decided to make use of that tradition that says "if it works, just do not touch it". But I couldn't find one that fit my needs, so like a good bored programmer, I decided to write my own. Some time ago, I tried to find a nice round-border-button control.