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!

ButtonBase.DrawDefaultBorder

Draws the dark border around the button control to indicate that the button is the default button.

[Visual Basic]
Protected Function DrawDefaultBorder( _
   ByVal g As Graphics, _
   ByVal r As Rectangle _
) As Rectangle
[C#]
protected Rectangle DrawDefaultBorder(
   Graphics g,
   Rectangle r
);
[C++]
protected: Rectangle DrawDefaultBorder(
   Graphics* g,
   Rectangle r
);
[JScript]
protected function DrawDefaultBorder(
   g : Graphics,
   r : Rectangle
) : Rectangle;

Parameters

g
The Graphics surface to draw on.
r
The Rectangle dimensions to draw within.

Return Value

A Rectangle with the same bounds as the button control.

See Also

ButtonBase Class | ButtonBase Members | System.WinForms Namespace | Draw3DBorder | DrawFlatFrame