By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,377 Members | 1,649 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,377 IT Pros & Developers. It's quick & easy.

Change text on messagebox button

P: 17
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
Share this Question
Share on Google+
3 Replies


P: 33
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

P: 4
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
Expert 100+
P: 196
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

Post your reply

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