This documentation is archived and is not being maintained.

ControlPaint.DrawGrabHandle Method

Draws a standard selection grab handle glyph on the specified graphics surface, within the specified bounds, and in the specified state and style.

[Visual Basic]
Public Shared Sub DrawGrabHandle( _
   ByVal graphics As Graphics, _
   ByVal rectangle As Rectangle, _
   ByVal primary As Boolean, _
   ByVal enabled As Boolean _
public static void DrawGrabHandle(
 Graphics graphics,
 Rectangle rectangle,
 bool primary,
 bool enabled
public: static void DrawGrabHandle(
 Graphics* graphics,
 Rectangle rectangle,
 bool primary,
 bool enabled
public static function DrawGrabHandle(
   graphics : Graphics,
 rectangle : Rectangle,
 primary : Boolean,
 enabled : Boolean


The Graphics to draw on.
The Rectangle that represents the dimensions of the grab handle glyph.
true to draw the handle as a primary grab handle; otherwise, false.
true to draw the handle in an enabled state; otherwise, false.


Grab handles are used by objects to indicate to the user that the user can directly manipulate the object. The manipulation can consist of actions such as sizing and moving.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ControlPaint Class | ControlPaint Members | System.Windows.Forms Namespace