I read in Windows Experience Guidelines: Error Messages that "OK" is an incorrect button to display on an error dialog.
...provide a Close button. Don't use OK for error messages, because this wording implies that problems are OK.
So, how can I display a simple error dialog with a single Close/Cancel button?
Is this possible with the standard MessageBox
class or must I resort to custom dialog (or library) or other Win32 message / p-invoke "hacks"?
(There doesn't seem to be anything relevant in the MessageBoxButtons
enumeration.)
Thanks.
MessageBoxButtons
enum, this might be because you don't really need anything else. I clearly understand your point about an [OK] button, but it all depends on the ind of problem you've encountered. What else you want the user to anwer? He doesn't agree and wanna do something about this error? I don't think so. In my point of view, I would simply use the standardMessageBox
, otherwise you'll have to implement your own, which shouldn't be too difficult.