ErrorProvider Constructors

Definition

Initializes a new instance of the ErrorProvider class.

Overloads

ErrorProvider()

Initializes a new instance of the ErrorProvider class and initializes the default settings for BlinkRate, BlinkStyle, and the Icon.

ErrorProvider(IContainer)

Initializes a new instance of the ErrorProvider class attached to an IContainer implementation.

ErrorProvider(ContainerControl)

Initializes a new instance of the ErrorProvider class attached to a container.

ErrorProvider()

Source:
ErrorProvider.cs
Source:
ErrorProvider.cs
Source:
ErrorProvider.cs

Initializes a new instance of the ErrorProvider class and initializes the default settings for BlinkRate, BlinkStyle, and the Icon.

C#
public ErrorProvider();

Remarks

The following table shows initial property values for an instance of ErrorProvider.

Property Value
Icon An icon that consists of an exclamation point in a circle with a red background
BlinkRate 250
BlinkStyle BlinkIfDifferentError

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

ErrorProvider(IContainer)

Source:
ErrorProvider.cs
Source:
ErrorProvider.cs
Source:
ErrorProvider.cs

Initializes a new instance of the ErrorProvider class attached to an IContainer implementation.

C#
public ErrorProvider(System.ComponentModel.IContainer container);

Parameters

container
IContainer

The IContainer to monitor for errors.

Remarks

The IContainer specified is the container object for the data-bound controls to associate the error provider with.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

ErrorProvider(ContainerControl)

Source:
ErrorProvider.cs
Source:
ErrorProvider.cs
Source:
ErrorProvider.cs

Initializes a new instance of the ErrorProvider class attached to a container.

C#
public ErrorProvider(System.Windows.Forms.ContainerControl parentControl);

Parameters

parentControl
ContainerControl

The container of the control to monitor for errors.

Remarks

The Control specified by ContainerControl is the container object for the data-bound controls to associate the error provider with.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9