Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

handle the buttons of the MessageBox

Status
Not open for further replies.

mondi

Programmer
Sep 10, 2003
169
AL
Hello everybody!
I would like to handle the buttons of a message box, instead of having the texts Yes No Cancel, I want to have other text displayed in the MessageBox. For this, I thought to make a class called MsgBoxEdited, inherited from the MessageBox class and inside this class to have a method called Show which would handle the MessageBoxButtons and change their captions.
This is a general idea but I am not sure how to implement it.
Thanks in advance for any help.

Country of eagles
 
I don't think you can inherit directly from MessageBox, you would probably need to build your own.

Hope this helps.
 
Actually I built another class called MessageBox, that is a form with three button in the cases when I have Yes No Cancel, but I think that having the standard MessageBox of the .NET, with the captions changed would look better in the application. But if there is no other way, what can I do?
Thanks earthandfire

Country of eagles
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top