CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of Rounded Corners
<Extension()> _
Public Function RoundRect(ByVal form As Form, _
                     Optional ByVal radius As Integer = 18) As Region
    form.FormBorderStyle = FormBorderStyle.None
    Return New Region(New Rectangle(0, 0, form.Width, form.Height).RoundRect(radius))
End Function
 
<Extension()> _
Public Function RoundRect(ByVal rect As Rectangle, ByVal radius As Integer) As Drawing2D.GraphicsPath
    Dim oPath As Drawing2D.GraphicsPath = New Drawing2D.GraphicsPath()
by Thom Lamb   April 23, 2010 @ 1:01pm
270 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate