Skip to content

PopUp Mesages in C#.Net

Vikrant Sikarwar

Asked Dec 21, 2005, 7:33 AM EST2 answers
Share
LinkedInX

Hi all,
     I am developing an applicaton, and i want to include PopUp messages in my application
     is someone help me to do so
Thank's

Vikrant

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    MessageBox.Show("Your message."); See http://msdn.microsoft.com, and get a good C# book.
    0
  • 0
    hey maybe you want from time to time messages or random?? if  not the good answer is upper then me

    more speciffic:
    MessageBox.Show("Hellow", "This is a Window title", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);  // this is a simple messbox but maybe you want buttons?
    try these...>>


    DialogResult result ;

    result = MessageBox.Show("Hellow", "This is a Window title", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation);
     if(result==DialogResult.OK){
         // does your code
    }else{
        // the other code
    }


    0