Most fields require validation. There are three types of validation:
To show an error, display an error provider icon next to the field on the right. An example of this is shown in the figure below.
The reason for the above validation placement is that these events run in the following order:
✅ Figure: Good example - Error Provider Icon with the required field
Do not show a message box after every error in validation. You may show a message box as an error summary when an OK or Apply is clicked. Make sure you warn the user that there is an error on the form when they attempt to save.
✅ Figure: Good example - Balloon tooltip indicates the validation error
Note: For validation errors, don't rely on an error message box and instead automatically focus on the control with the validation error (e.g. in WinForms, use SetFocusOnError on controls that fail validation).