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 ??

Recommended Answers

All 3 Replies

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

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.