Form.ValidateChildren Method

Definition

Validates all selectable child controls in the form.

Overloads

ValidateChildren()

Causes all of the child controls within a control that support validation to validate their data.

ValidateChildren(ValidationConstraints)

Causes all of the child controls within a control that support validation to validate their data.

ValidateChildren()

Source:
Form.cs
Source:
Form.cs
Source:
Form.cs

Causes all of the child controls within a control that support validation to validate their data.

[System.ComponentModel.Browsable(true)]
public override bool ValidateChildren ();

Returns

true if all of the children validated successfully; otherwise, false. If called from the Validating or Validated event handlers, this method will always return false.

Attributes

See also

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

ValidateChildren(ValidationConstraints)

Source:
Form.cs
Source:
Form.cs
Source:
Form.cs

Causes all of the child controls within a control that support validation to validate their data.

[System.ComponentModel.Browsable(true)]
public override bool ValidateChildren (System.Windows.Forms.ValidationConstraints validationConstraints);

Parameters

validationConstraints
ValidationConstraints

Places restrictions on which controls have their Validating event raised.

Returns

true if all of the children validated successfully; otherwise, false. If called from the Validating or Validated event handlers, this method will always return false.

Attributes

See also

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