Export (0) Print
Expand All
Expand Minimize

Control.CausesValidation Property

Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus.

[Visual Basic]
Public Property CausesValidation As Boolean
[C#]
public bool CausesValidation {get; set;}
[C++]
public: __property bool get_CausesValidation();
public: __property void set_CausesValidation(bool);
[JScript]
public function get CausesValidation() : Boolean;
public function set CausesValidation(Boolean);

Property Value

true if the control causes validation to be performed on any controls requiring validation when it receives focus; otherwise, false. The default is true.

Remarks

If the CausesValidation property is set to false, the Validating and Validated events are suppressed.

The CausesValidation property value is typically set to false for controls such as a Help button.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Control Class | Control Members | System.Windows.Forms Namespace | Validating | Validated

Show:
© 2014 Microsoft