Way To Use MessageBoxButtons.YesNoCancel

Aug 29, 2009

How do I use the MessageBoxButtons? I want a Yes/No/Cancel option.I want the Yes option to save the text file.(By SaveFileDialog)I want the No to exit the program.I want cancel to return to the program

View 3 Replies


ADVERTISEMENT

Button - .NET: MessageBox With YesNoCancel - No & Cancel Triggers Same Event?

Feb 13, 2010

I have a message box with YesNoCancel button..

Pressing Yes will do some action and close the app - works fine,
Pressing No will do nothing and close the app - (see below),
Pressing Cancel will Do nothing and keep the app open - (see below).

I'm using DialogResult.No for No button and DialogResult.Cancel for cancel button. But pressing either of them triggers DialogResult.Cancel event. Whats the problem?

View 1 Replies

MessageBoxButtons - When User Click Yes Button Then A Link Should Open

Dec 30, 2009

i have message box with two buttons yes and no.MessageBoxButtons.YesNo How can i set web Link in Messageboxbuttons yes button?When user click yes button then a link should open.

View 2 Replies

Messagebox Which Has 2 Buttons (MessageBoxButtons.YesNo) Can't Change Focus With Tab Key And Can't Trigger Button With Enter Key

Jun 14, 2009

I have 1 messagebox which has 2 buttons (MessageBoxButtons.YesNo) usually we can change the focus of the button(yes and No) with tab key and we also can trigger the button with enter key.. but sometimes, i can't change the focus with tab key and can't trigger the button with enter key.i think the messagebox lost its focus..i have to click the form, so the messagebox will regain its focus how to set focus for messagebox?

View 9 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved