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");
}
}
}