A message box : MessageBox « GUI Windows Form « C# / C Sharp






A message box

A message box
/*
C# Programming Tips & Techniques
by Charles Wright, Kris Jamsa

Publisher: Osborne/McGraw-Hill (December 28, 2001)
ISBN: 0072193794
*/
namespace nsFirst
{
    using System;
    using System.Windows.Forms;
    
    public class MessageBoxShowExclamation {
        static public void Main()
        {
            MessageBox.Show ("Hello, C# World!", "Howdy",
                       MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

        }
    }
}


           
       








Related examples in the same category

1.Yes No Cancel
2.Display Question messagebox and check its resultDisplay Question messagebox and check its result
3.MessageBox OptionsMessageBox Options
4.MessageBox with OK button and information iconMessageBox with OK button and information icon
5.Message box builderMessage box builder
6.Information message boxInformation message box