NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ControlPaint.DrawGrabHandle

Draws a standard selection grab handle with the given dimensions. Grab handles are used by components to indicate to the user that they can be directly maniupulated.

[Visual Basic]
Public Shared Sub DrawGrabHandle( _
   ByVal g As Graphics, _
   ByVal rect As Rectangle, _
   ByVal primary As Boolean, _
   ByVal enabled As Boolean _
)
[C#]
public static void DrawGrabHandle(
   Graphics g,
   Rectangle rect,
   bool primary,
   bool enabled
);
[C++]
public: static void DrawGrabHandle(
   Graphics* g,
   Rectangle rect,
   bool primary,
   bool enabled
);
[JScript]
public static function DrawGrabHandle(
   g : Graphics,
   rect : Rectangle,
   primary : Boolean,
   enabled : Boolean
);

Parameters

g
The graphics object to draw the handle on.
rect
The size and location of the handle.
primary
If true the handle will be drawn as a primary grab handle.
enabled
If true the handle will be drawn enabled, otherwise it will appear disabled.

See Also

ControlPaint Class | ControlPaint Members | System.WinForms Namespace