Home
Manage Your Code
Snippet: Confrimation Box in Window Application (C#)
Title: Confrimation Box in Window Application Language: C#
Description: Display Confrimation Box in Window Application Views: 175
Author: Rajeev Jain Date Added: 6/6/2008
Copy Code  
1private void button1_Click(object sender, EventArgs e)
2        {
3            int i=(int)MessageBox.Show("Do you want to close this Add Form", "Midatlantic System", System.Windows.Forms.MessageBoxButtons.YesNo, System.Windows.Forms.MessageBoxIcon.Warning);
4            MessageBox.Show(i.ToString());
5            return;
6        }