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.SetError

Sets the error description string for the specified control.

[Visual Basic]
Public Sub SetError( _
   ByVal control As RichControl, _
   ByVal value As String _
)
[C#]
public void SetError(
   RichControl control,
   string value
);
[C++]
public: void SetError(
   RichControl* control,
   String* value
);
[JScript]
public function SetError(
   control : RichControl,
   value : String
);

Parameters

control
Control to set the error description string for.
value
Error description string to set. If the string length is greater than zero, then the error icon is displayed, and the tooltip for the error icon is the error description text. If the string length is zero, then the error icon is hidden.

See Also

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