Messages - Do you know what icons to use? (3/3 Icons)
  v1.0 Posted at 27/11/2012 3:38 PM by Rebecca Liu


Including an icon is important because not only does it give the user a visual indication of the type of message, but without it only the Default beep sound is used. The icon should reflect the type of information being presented:
Icon Name When to use
info MessageBoxIcon.Information Non-error information, e.g. Database connection test completed successfully
Warning MessageBoxIcon.Warning A non-critical error, e.g. The input was invalid
error MessageBoxIcon.Error Critical error in the program, e.g. Program file was not found
MessageBoxIcon.Question NEVER use this. 
According to Microsoft, the Question mark is being phased out, as any of the other three: Error, Warning or Information can easily be reworded into a Question, and Question does not show the user the severity of the issue that has just occurred.
E.g.  If you want to ask the user whether they want to save a file before closing, you should use the Warning Icon.

We have a program called SSW Code Auditorto check for this rule.

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address: