ErrorProvider Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ErrorProvider class.
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. |
- 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.
public:
ErrorProvider();
public ErrorProvider();
Public Sub New ()
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 |
- Source:
- ErrorProvider.cs
- Source:
- ErrorProvider.cs
- Source:
- ErrorProvider.cs
Initializes a new instance of the ErrorProvider class attached to an IContainer implementation.
public:
ErrorProvider(System::ComponentModel::IContainer ^ container);
public ErrorProvider(System.ComponentModel.IContainer container);
new System.Windows.Forms.ErrorProvider : System.ComponentModel.IContainer -> System.Windows.Forms.ErrorProvider
Public Sub New (container As IContainer)
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 |
- Source:
- ErrorProvider.cs
- Source:
- ErrorProvider.cs
- Source:
- ErrorProvider.cs
Initializes a new instance of the ErrorProvider class attached to a container.
public:
ErrorProvider(System::Windows::Forms::ContainerControl ^ parentControl);
public ErrorProvider(System.Windows.Forms.ContainerControl parentControl);
new System.Windows.Forms.ErrorProvider : System.Windows.Forms.ContainerControl -> System.Windows.Forms.ErrorProvider
Public Sub New (parentControl As ContainerControl)
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: