MessageBox with answer returns
--Using [VS C#.NET]--
This is a really simple question...
How do you make a message box that has a YES/NO and returns a boolean depending on the users response.
Specifically I want to prompt the user to confirm if he wants to delete the seletected item.
So like if (messagebox.response) then XXX else YYY type of pseudo-code.
I am sure this is rather trivial just couldn't find any clear examples.
Thanks,
Re: MessageBox with answer returns
I wish this can help..
Code:
DialogResult res= MessageBox.Show(this,"Delete ?","confirm",MessageBoxButtons.YesNo);
if(res==DialogResult.No)
return;
else
//Delete