Sets the location where the error icon should be placed in relation to the control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
control is a null reference (Nothing in Visual Basic).
The following code example demonstrates using the ErrorProvider class to notify the user of a data entry error. The example creates a Form that contains a TextBox control, a NumericUpDown control, and a ComboBox control, each validating its content, and an ErrorProvider for each control. The example sets error icon options using the BlinkRate and BlinkStyle properties and the and SetIconPadding methods. The SetError method is called with or without appropriate error text during a control's Validated event, depending upon the content in the control.