Quantcast
Channel: Learn C# » CSharp
Viewing all articles
Browse latest Browse all 10

How to add Yes and No buttons to Message Box?

$
0
0

DialogResult button = MessageBox.Show(“Are you sure want to  exit”, “Exit”, MessageBoxButtons.YesNo);

if (button == DialogResult.Yes)

{

   Application.Exit()

}

Udhaya

Pisquare



Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images