Version

DrawRounded1Border(Graphics,Border3DSide,Pen,Rectangle,Rectangle,Corners,Boolean) Method

Draws a rounded border with only a single pixel missing on the outside.
Syntax
'Declaration
 
Public Shared Sub DrawRounded1Border( _
   ByVal gr As Graphics, _
   ByVal sides As Border3DSide, _
   ByVal pen As Pen, _
   ByVal rect As Rectangle, _
   ByVal invalidRect As Rectangle, _
   ByVal roundedCorners As Corners, _
   ByVal insetCorners As Boolean _
) 
public static void DrawRounded1Border( 
   Graphics gr,
   Border3DSide sides,
   Pen pen,
   Rectangle rect,
   Rectangle invalidRect,
   Corners roundedCorners,
   bool insetCorners
)

Parameters

gr
The graphics object with which to draw the border.
sides
Describes which sides to draw on the border.
pen
The pen with which to draw the border.
rect
The rectangle of the border
invalidRect
The invalid rectangle on the control where the border is being drawn.
roundedCorners
Specifies which corners should be drawn rounded.
insetCorners
True to draw a pixel inset at each rounded corner, false otherwise.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also