System.Windows.Forms.ControlPaint.DrawSizeGrip Method

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

Syntax

public static void DrawSizeGrip (System.Drawing.Graphics graphics, System.Drawing.Color backColor, int x, int y, int width, int height)

Parameters

graphics
The System.Drawing.Graphics to draw on.
backColor
The System.Drawing.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.

Remarks

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.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0