473,322 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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 25982
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Christiaan | last post by:
I am trying to create a small javascript to change the button text and then submit it and do all kinds of form validations. So I have a button with the value "Save", when the button is clicked it...
14
by: Reply Via Newsgroup | last post by:
Folks, Say I have a table, ten columns, ten rows - Each with a word in it. I want to change the values of some/all of the cells in the table via a hyperlink. How do I reference each cell and...
4
by: Werner Kaiser | last post by:
Hi, I want to change the text for the file-browse button within a form: I have something like that: <FORM ENCTYPE="multipart/form-data" ACTION="<?php echo basename(__FILE__)...
4
by: Patrick Noll | last post by:
hi ng, i have a problem when i try to change the text property of a TreeNode just before the user is able to edit this property. Example: // Label before anything happens... TreeNode.Text =...
4
by: Arif Çimen | last post by:
Hi to everybody, I have chnged a button text in design mode. But After compiling and executing the program the text of the button do not change to new value. Any Ideas? Thaks for helps.
5
by: marijuanated | last post by:
Hi all, I am wondering if i could change a button text dynamically in its handler. for example,can we do something like this: curButton.bind("<Button-1>",self.StopServer) def...
1
by: AA Arens | last post by:
I have a database using a Switchboard. When I place a text on the buttons and push on one of them and go back, the text is fallen behind the button. This happens on some PC's but not on my laptop....
2
by: Rinaldo | last post by:
How to change the button text of a openfiledialog in to my own custum test?
6
by: K Viltersten | last post by:
I have the following button: <asp:LinkButton id="Btn" runat="server" text="Click"> </asp:LinkButton> I have added an action listener in the javascript where I change the text on it:...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.