when i click on the insert button
for example,
i have three fields like name, addree, phoneno
when i clilck on the insert button ,
in messagebox
Are you sure you want to insert below details?
name = Hardik , address =xyz,
phoneno =999999
as a result?
Sanjeeb LenkaPosted Aug 29, 2013, 2:39 AM
try like this:
var confirmResult = MessageBox.Show("Are you sure to insert this item ??", "insert !!", MessageBoxButtons.YesNo);
if (confirmResult == DialogResult.Yes)
{
// if 'Yes' do something here
}
else
{
// if 'No' do something here
}