We can use MessageBox as Confirm Dialog box
Coding
if(MessageBox.Show(“Confirm this?”, “Test”, MessageBoxButtons.YesNo) == DialogResult.Yes)
{
/// Code for ‘Yes’
}
else
{
/// Code for ‘No’
}
{
/// Code for ‘Yes’
}
else
{
/// Code for ‘No’
}
We can use MessageBox as Confirm Dialog box
Coding
Posted in .Net, WinForms | Tagged .Net, C#, Confirm dialog, Message Box, winforms | Leave a Comment »
M | T | W | T | F | S | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |