Verifies the value of the control losing focus by causing the
System.Windows.Forms.Control.Validating and
System.Windows.Forms.Control.Validated events to occur, in that order.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Overloads Function Validate() As System.Boolean |
| C# | |
|---|
public System.bool Validate() |
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