ErrorBlinkStyle Enumeration

 

Specifies constants indicating when the error icon, supplied by an ErrorProvider, should blink to alert the user that an error has occurred.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

type ErrorBlinkStyle

Member nameDescription
AlwaysBlink

Always blink when the error icon is first displayed, or when a error description string is set for the control and the error icon is already displayed.

BlinkIfDifferentError

Blinks when the icon is already displayed and a new error string is set for the control.

NeverBlink

Never blink the error icon.

This enumeration is used by ErrorProvider.

The following 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 SetIconAlignment 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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: