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 TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom message boxes

Status
Not open for further replies.

Grafton54

Computer
Joined
May 9, 2005
Messages
11
Location
GB
I want to create a message box with the text "Which plant are you upgrading?" and three buttons: "Live" "Test" and "Cancel".

The text is not difficult to produce, but I do not know how to generate the buttons. I have searched the help instructions of the MsgBox function but it seems that the button settings are restricted (e.g. There is an option for Y/N buttons).

Does anybody know if it is possible to do it? Many thanks.
 
The easy way is to create a custom form containing a label control and the appropriate number of buttons and then show it modally, retrieving the return value via a Public variable

Good Luck
johnwm
________________________________________________________
To get the best from these forums read faq731-376 before posting

UK steam enthusiasts:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top