Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Validates all selectable child controls in the form.
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. |
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 -> bool
Public Overrides Function ValidateChildren () As Boolean
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
.
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 -> bool
Public Overrides Function ValidateChildren (validationConstraints As ValidationConstraints) As Boolean
Places restrictions on which controls have their Validating event raised.
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
.
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Please sign in to use this experience.
Sign in