Verifies the value of the control that is losing focus; conditionally dependent on whether automatic validation is turned on.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Overloads Function Validate( _
ByVal checkAutoValidate As System.Boolean _
) As System.Boolean |
Parameters
- checkAutoValidate
- If true, the value of the System.Windows.Forms.ContainerControl.AutoValidate property is used to determine if validation should be performed; if false, validation is unconditionally performed.
Return Value
true if validation is successful; otherwise, false. If called from the
System.Windows.Forms.Control.Validating or
System.Windows.Forms.Control.Validated event handlers, this method will always return false.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also