SSISO Community

갤러리정

Display Question messagebox and check its result

using  System;
using  System.Drawing;
using  System.Collections;
using  System.ComponentModel;
using  System.Windows.Forms;
using  System.Data;

public  class  Test{
        [STAThread]
        static  void  Main()  
        {
                        DialogResult  reply  =  MessageBox.Show("Question?",
                        "Yes  or  No  Demo",MessageBoxButtons.YesNo,MessageBoxIcon.Question);
            
                        if  (reply  ==  DialogResult.Yes){
                              MessageBox.Show("Yes");
                        }  else  {
                              MessageBox.Show("No");
                        }
        }
}

3000 view

4.0 stars