Export (0) Print
Expand All

ControlPaint.DrawSizeGrip Method (Graphics, Color, Int32, Int32, Int32, Int32)

Draws a size grip on a form with the specified bounds and background color and on the specified graphics surface.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public static void DrawSizeGrip (
	Graphics graphics,
	Color backColor,
	int x,
	int y,
	int width,
	int height
)
public static void DrawSizeGrip (
	Graphics graphics, 
	Color backColor, 
	int x, 
	int y, 
	int width, 
	int height
)
public static function DrawSizeGrip (
	graphics : Graphics, 
	backColor : Color, 
	x : int, 
	y : int, 
	width : int, 
	height : int
)
Not applicable.

Parameters

graphics

The Graphics to draw on.

backColor

The Color of the background used to determine the colors of the size grip.

x

The x-coordinate of the upper left corner of the size grip.

y

The y-coordinate of the upper left corner of the size grip.

width

The width of the size grip.

height

The height of the size grip.

The backColor parameter is used to calculate the color of the size grip so that it is always visible against the background.

When you define a sizable window, you can include a size grip. A size grip is a special handle that enables the user to resize a window.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft