UserControl.AutoValidate Property


Gets or sets how the control performs validation when the user changes focus to another control.

 virtual property System::Windows::Forms::AutoValidate AutoValidate { System::Windows::Forms::AutoValidate get(); void set(System::Windows::Forms::AutoValidate value); };
public override System.Windows.Forms.AutoValidate AutoValidate { get; set; }
member this.AutoValidate : System.Windows.Forms.AutoValidate with get, set
Public Overrides Property AutoValidate As AutoValidate

Property Value

A member of the AutoValidate enumeration. The default value for UserControl is EnablePreventFocusChange.


Applies to