A trivial UI guideline question - Is it ok to have MessageBox without caption ? I have a Winforms GUI with 3 confirmation boxes at different scenarios. Can anybody provide me some formal UI guidelines information on whether it is mandatory to have Captions on MessageBoxes ?
There's certainly no rule against it, but you aren't helping the user out without a title. Even a simple title such as "Warning" or "Confirm" is helpful to the user.
The title should describe what the message is about, where as a message icon helps distinguish the type of message.
But you should try to keep MessageBoxes to a minimum. They are usually disruptive to the end user.
A window without a title does no favours for your accessibility users. Windows should always have a title.
You mentioned a warning icon, but unfortunately that's not helpful for people who use a screen reader. Screen readers typically look for a title in dialogs to give context.
Firstly the point of the title is to provide a context within which the message box is appearing. It helps relate the cause, the action, and the response to it.
Secondly, user are so used to titles, that a blank title makes you think there's an error or missing text that was meant to be there. It's why pages in printed media say 'this page intentionally left blank' instead of leaving the reader wondering if it was actually supposed to be blank.
So whilst there's not exactly a written rule for every ui toolkit that says thou shalt always title a message box, it kind of doesn't make sense not to - when you can perfectly easily. It just feels a bit lazy...?
lpCaption [in, optional]
The dialog box title. If this parameter is NULL, the default title is Error.
It will show a default caption, and if the caption is not correct (when it is not about an error), it will confuse the user. I wouldn't do that.
There is much to do with the message boxes, and its often used for providing some kind of information(an error, or information, warning etc.)
.NEt itself provides a number of overloaded methods when you use MessageBox, which simply added that you are not bound to specific detail, If your message(than caption) can only capable of what you actually wants to tell, that's enough, else there is Caption, MessageBoxIcon, MessageBoxButton, which further can be added to your functionality, helps user to get it the way you want.