UserControl.ValidateChildren Method   
Definition
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.
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:
- UserControl.cs
- Source:
- UserControl.cs
- Source:
- UserControl.cs
Causes all of the child controls within a control that support validation to validate their data.
public:
 override bool ValidateChildren();[System.ComponentModel.Browsable(true)]
public override bool ValidateChildren();[<System.ComponentModel.Browsable(true)>]
override this.ValidateChildren : unit -> boolPublic Overrides Function ValidateChildren () As BooleanReturns
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
ValidateChildren(ValidationConstraints)
- Source:
- UserControl.cs
- Source:
- UserControl.cs
- Source:
- UserControl.cs
Causes all of the child controls within a control that support validation to validate their data.
public:
 override bool ValidateChildren(System::Windows::Forms::ValidationConstraints validationConstraints);[System.ComponentModel.Browsable(true)]
public override bool ValidateChildren(System.Windows.Forms.ValidationConstraints validationConstraints);[<System.ComponentModel.Browsable(true)>]
override this.ValidateChildren : System.Windows.Forms.ValidationConstraints -> boolPublic Overrides Function ValidateChildren (validationConstraints As ValidationConstraints) As BooleanParameters
- 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