Winforms UI Best practices: Form.AutoValidate = EnableAllowFocusChange

Set on every form: Form.AutoValidate = EnableAllowFocusChange

 

image
image Figure: Form.AutoValidate = EnablePreventFocusChange, prevents you from leaving your textbox until your data entry is correct

 

image
image Figure: Form.AutoValidate = EnableAllowFocusChange with Errorproviders tell you bad data entry, but let you change to other controls

Latest Posts

Popular Posts