W
wizofaus
MessageBox.Show() provides an overload where you supply only the text.
I figured that, like MFC and similar frameworks, the caption would be
the application name, which is 99% of the time what you would want.
But no...the documentation even states that the caption is blank. But
when would it ever be considered acceptable in a Windows application
that follows all the relevant GUI standards to have a blank title bar
(no caption)? Even under the raw Win32 API for MessageBox, the caption
is the word "Error" if you don't supply one. I can't think of any
reasonable justification for supplying this overload given its current
behaviour.
I figured that, like MFC and similar frameworks, the caption would be
the application name, which is 99% of the time what you would want.
But no...the documentation even states that the caption is blank. But
when would it ever be considered acceptable in a Windows application
that follows all the relevant GUI standards to have a blank title bar
(no caption)? Even under the raw Win32 API for MessageBox, the caption
is the word "Error" if you don't supply one. I can't think of any
reasonable justification for supplying this overload given its current
behaviour.