954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Customized button caption in messagebox show

Is it possible to change the caption of buttons of messagebox (change 'Yes' into 'Save' and 'No' into 'Discard'), If yes, then How it can possible and access the values of the clicked button ??

abhi10kumar
Junior Poster
126 posts since Feb 2011
Reputation Points: 15
Solved Threads: 1
 

Nope. It's easy enough to create a simple form with the buttons you want and return the values as needed.

Momerath
Nearly a Senior Poster
3,386 posts since Aug 2010
Reputation Points: 1,232
Solved Threads: 558
 

As said, you have to create your own form, which will look like a messageBox. There you can do what ever you want.

Mitja Bonca
Nearly a Posting Maven
2,485 posts since May 2009
Reputation Points: 641
Solved Threads: 474
 

Use Form.ShowDialog() instead of From.Show() to get the modaldialog effect of the MessageBox.

ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: