473,790 Members | 3,254 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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", MessageBoxButto ns.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 MessageBoxButto ns.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 26104
Hi

Check out the following msdn article:
http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpref/html/frlrfSystemWind owsFormsMessage BoxClassShowTo
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.Sho w("Pass or Fail ?", "Dialog Title", MessageBoxButto ns.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 MessageBoxButto ns.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*********@ho tmail.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/frlrfSystemWind owsFormsMessage BoxClassShowTo
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.Sho w("Pass or Fail ?", "Dialog Title",

MessageBoxButto ns.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

MessageBoxButto ns.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******** ********@TK2MSF TNGP09.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*********@ho tmail.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/frlrfSystemWind owsFormsMessage BoxClassShowTo
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.Sho w("Pass or Fail ?", "Dialog Title",

MessageBoxButto ns.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

MessageBoxButto ns.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
3617
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 should change into "Are you sure" and when you then click the button the form must be submitted. I know this is possible using a simple dialog box but I want to this it this way. This is what I already have, if you have any suggestions please...
14
2521
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 change its text contents from a link elsewhere in the page? I have a rought idea that I'll need something like 'id' in my <td> tags but while I have a greater understanding of server-side programming langauges like PHP, javascript is still very new...
4
14012
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__) ?>?command=CHANGECONTPICTURE" METHOD=POST> <INPUT_TYPE="File" name="userfile" size="1" maxlength="255">
4
8874
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 = "TestNode {ShortCut}"; // when user enters the edit mode, i want to remove the ShortCut entry... TreeNode.Text = "TestNode"; ----
4
2632
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
5244
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 StopServer(self,event):
1
1845
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. How to solve it? Bart
2
7452
by: Rinaldo | last post by:
How to change the button text of a openfiledialog in to my own custum test?
6
6429
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: this.dom.textContent = "Clicked"; The change is effective but after the site has reloaded the text is back to "Click".
0
9512
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10201
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9987
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9023
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6770
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5424
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5552
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4100
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2910
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.