469,904 Members | 2,290 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,904 developers. It's quick & easy.

How do I change the button text for the MessageBox ?

Pls help.

What I am trying to do is to change the text of the MessageBox. For example,
when we use :

MessageBox.Show("Pass or Fail ?", "Dialog Title", MessageBoxButtons.YesNo);

Then we will have the Yes and No button for user to press. Now how can I
have the enum struct option where I can put MessageBoxButtons.PassFail which
will display Pass and Fail buttons on the message box ? Is ther anyway to do
this ?

Thanks
Regards
Nov 15 '05 #1
3 25040
Hi

Check out the following msdn article:
http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpref/html/frlrfSystemWindowsFormsMessageBoxClassShowTo
pic.asp

HTH
Ravikanth[MVP]

-----Original Message-----
Pls help.

What I am trying to do is to change the text of the MessageBox. For example,when we use :

MessageBox.Show("Pass or Fail ?", "Dialog Title", MessageBoxButtons.YesNo);
Then we will have the Yes and No button for user to press. Now how can Ihave the enum struct option where I can put MessageBoxButtons.PassFail whichwill display Pass and Fail buttons on the message box ? Is ther anyway to dothis ?

Thanks
Regards
.

Nov 15 '05 #2
Are you sure on this ??

I know there is a quite a few overload for this MessageBox.show, but I am
looking for one which I can say change the Yes and No button to Pass and
Fail button.

*********************************

"Ravikanth[MVP]" <dv*********@hotmail.com> wrote in message
news:0a****************************@phx.gbl...
Hi

Check out the following msdn article:
http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpref/html/frlrfSystemWindowsFormsMessageBoxClassShowTo
pic.asp

HTH
Ravikanth[MVP]

-----Original Message-----
Pls help.

What I am trying to do is to change the text of the

MessageBox. For example,
when we use :

MessageBox.Show("Pass or Fail ?", "Dialog Title",

MessageBoxButtons.YesNo);

Then we will have the Yes and No button for user to

press. Now how can I
have the enum struct option where I can put

MessageBoxButtons.PassFail which
will display Pass and Fail buttons on the message box ?

Is ther anyway to do
this ?

Thanks
Regards
.

Nov 15 '05 #3
i guess you have to write your own dialog window
then set the dialog result on the buttons to be Yes and No

"RickDee" <ch***********@agilent.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Are you sure on this ??

I know there is a quite a few overload for this MessageBox.show, but I am
looking for one which I can say change the Yes and No button to Pass and
Fail button.

*********************************

"Ravikanth[MVP]" <dv*********@hotmail.com> wrote in message
news:0a****************************@phx.gbl...
Hi

Check out the following msdn article:
http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpref/html/frlrfSystemWindowsFormsMessageBoxClassShowTo
pic.asp

HTH
Ravikanth[MVP]

-----Original Message-----
Pls help.

What I am trying to do is to change the text of the

MessageBox. For example,
when we use :

MessageBox.Show("Pass or Fail ?", "Dialog Title",

MessageBoxButtons.YesNo);

Then we will have the Yes and No button for user to

press. Now how can I
have the enum struct option where I can put

MessageBoxButtons.PassFail which
will display Pass and Fail buttons on the message box ?

Is ther anyway to do
this ?

Thanks
Regards
.


Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Christiaan | last post: by
14 posts views Thread by Reply Via Newsgroup | last post: by
4 posts views Thread by Werner Kaiser | last post: by
4 posts views Thread by Patrick Noll | last post: by
4 posts views Thread by Arif Çimen | last post: by
5 posts views Thread by marijuanated | last post: by
2 posts views Thread by Rinaldo | last post: by
6 posts views Thread by K Viltersten | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.