Do you label your form buttons consistently?
1/12/2014 12:56 PM by
The buttons that a user will typically use to close a form should be named consistently across your applications.
- Figure: Bad Example - Unclear labels on the buttons
Save button could possibly update the fields but keep the form open.
Close could save the fields, then close the form, when the
Cancel button may be more appropriate.
We recommend the age-old standards of:
OK. Close the form and save any changed data. This should be referenced by the form's AcceptButton property.
Cancel. Close the form without saving. This should be referenced by the form's CancelButton property.
Apply. Save data without closing the form.
- Figure: Good Example - This form uses the standard button naming standards (and has the Default buttons set!)
We have a program called
SSW Code Auditor to check for this rule.
Do you feel this rule needs an update?