|
-
March 12th, 2005, 03:15 AM
#1
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,
-
March 12th, 2005, 03:24 AM
#2
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|