Dialog Box?

Posted on 2008-11-13
Last Modified: 2013-12-17

Is there a dialog box type in the .NET framework?

Question by:NigelRocks
    LVL 15

    Expert Comment

    Can you expand on your question a little?  Do you mean normal messageboxes?  There are several different styles you can have for them
    LVL 1

    Author Comment

    I'm just looking for all of those options to use in a web app.
    LVL 15

    Accepted Solution

    Well, as there must be hundreds of different variations it would be nearly impossible to list them all.  Here are a couple of C# examples.

    MessageBox.Show("Hello", "My Box Title");
    MessageBox.Show("Hello", "My Box Title", MessageBoxButtons.OK);
    MessageBox.Show("Hello", "My Box Title", MessageBoxButtons.OK, MessageBoxIcon.Stop);

    if (MessageBox.Show("Please select Yes", "Make a choice", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
            MessageBox.Show("You selected yes!");
    LVL 1

    Author Comment

    Those are all for Windows forms, not web forms, correct?


    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Flash ( has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
    Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now