Total .NET Analyzer Rule Documentation  

FormAcceptButton Rule

Consider setting the form's AcceptButton property.

Remarks

A form's AcceptButton property sets the button on the form that is invoked when the user presses [Enter]. This property allows you to designate a default action to occur. If you don't set the AcceptButton property, the form has no default reaction to [Enter].

Resolution

If you want to designate a default action to occur when a user presses [Enter] on a form, set the Form.AcceptButton property. You can set this property in the form's properties window to any Button Control on the current form.

See Also

Form.AcceptButton Property

IButtonControl Interface