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!

ErrorProvider.SetIconPadding

Sets the amount of extra space to leave next to the error icon.

[Visual Basic]
Public Sub SetIconPadding( _
   ByVal control As RichControl, _
   ByVal padding As Integer _
)
[C#]
public void SetIconPadding(
   RichControl control,
   int padding
);
[C++]
public: void SetIconPadding(
   RichControl* control,
   int padding
);
[JScript]
public function SetIconPadding(
   control : RichControl,
   padding : int
);

Parameters

control
Control to set the padding for.
padding
The number of pixels to leave between the icon and the control. Note that many icons naturally have extra space around thier central image, so the padding value is only necessary if additonal space is necessary. Also, the padding can be negative so the icon overlaps the edge of the control.

See Also

ErrorProvider Class | ErrorProvider Members | System.WinForms Namespace | GetIconPadding