Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7182593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:48:10+00:00 2026-05-28T17:48:10+00:00

I read in Windows Experience Guidelines: Error Messages that OK is an incorrect button

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:48:11+00:00Added an answer on May 28, 2026 at 5:48 pm

    You want the all-improved TaskDialog.

    Available from here with description on usage here

    TaskDialog allows you to specify in more detail the buttons and icons that show and is microsoft’s own solution to your problem in .Net.

    — update to answer @pst’s comment

    If you have to support Winows XP or earlier then there is a very stable and reliable library on codeproject which wraps and emulates the microsoft taskdialog class when you are using an earlier version of windows, and uses MS’s own version if you are on Vista or later.

    I have relied on this codeproject library approx 2 years ago, and it was stable then, so there should be no reliability issues at all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Since I've read Windows User Experience Interaction Guidelines (there's a PDF download avaliable) I've
I wrote a windows service using VB that read some legacy data from Visual
I've read a few topics about programs that combine Windows Forms and console applications,
I'm looking for a Windows tool that is able to log every action (read
I am dealing with some client's that use Windows servers and as such do
How do I read text from the (windows) clipboard with python?
How to read data from Bar Code Scanner in .net windows application? Can some
Is is possible to read system environment variables in a Windows Scripting Host (WSH)
In C#/.NET (on Windows) is there a way to read a growing file using
I've read the max heap size on 32bit Windows is ~1.5GB which is due

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.