473,388 Members | 1,309 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,388 software developers and data experts.

Change text on messagebox button

Hello,



I would like to know how to change the text on the messagebox buttons.

For example, Yes and No buttons to Do and Don't etc.

Thanks in advance


Mike
Aug 26 '10 #1
3 5154
You can create your own dialog box form, and call it instead. On the button click events, just return a boolean yes or no and close the dialog form
Sep 14 '10 #2
You can just use the MsgBoxStyle Enum to set the Style.
Like here:
MsgBox("Hello", MsgBoxStyle.AbortRetryIgnore, "AbortRetryIgnore")
That would simply set the prompt as "Hello", The style as AbortRetryIngore, and the title as "AbortRetryIgnore"
Sep 28 '10 #3
Joseph Martell
198 Expert 128KB
marcellus7 is correct. You would have to create your own form that mimics the functionality of the built-in message box. Windows provides the message box as a built-in shortcut for performing common tasks and as such has only built in certain functionality. To get anything customized you have to define your own form, as far as I know.
Sep 29 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: OM | last post by:
I've found out that I can use <div id = "variable"><div> to change text and pictures on mouseovers. All I have to do is change "variable" to be the HTML text I want. I can even change the text...
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__)...
2
by: michael | last post by:
I know it is easy to change text styles, fonts etc., using JS, as for example below: <div id="example">Text text text</div> <script......
5
by: AFN | last post by:
I'm trying to set a submit button to change text and color when clicked. Like saying "please wait" instead of "submit" and then changing the background color and text color. All works, except for...
0
by: Tim Cowan | last post by:
Hi I was wondering if anyone could tell me how to change the Datagrid button text (Update, Edit, Cancel) at run time? Thanks Tim Cowan
4
by: aiki727 | last post by:
I am working on an application in which I would like to change the existing text in the control (system) menu (the menu that appears when the form icon is clicked). Specifically, I would like to...
2
chunk1978
by: chunk1978 | last post by:
hi there... is it possible to change text on a page that is just on a line (without being in a specific textbox or something)... currently the text i'd like to change is in a DIV, but i can't...
18
by: wizdom | last post by:
Help - change text on click - text has another onclick inside with php variables ---------- I think what I'm trying to do is simple. I have a 2 buttons on a page. 1 button allows a thread of...
1
by: maheshgupta0248 | last post by:
Hi All, I have created a dialog based application in vc++ which includes some buttons.I want to give different colours for their borders and also for the text on them.Can u pls provide solution for...
3
by: dfluker | last post by:
Here is my code:<title>Dom demo</title> <script type="text/javascript"> function changeText() { var Temp = document.getElementById('first').innerHTML= 'Second Entry'; ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.