Is it possible to have custom options on a messagebox other than Ok or yes no.. for example
"100" and "200"
Printable View
Is it possible to have custom options on a messagebox other than Ok or yes no.. for example
"100" and "200"
The straightforward answer is no you are limited to a few standard options, but it is very simple to implement your own message box.
Just create a form with a public procedure which accepts the text you want to show and details of the buttons, shows the dialog modally and returns the value of the button pressed.
Hey,
Have a look at this article here:
http://www.emoreau.com/Entries/Artic...essageBox.aspx
Also, it you want to go deeper, have a look here:
http://msdn.microsoft.com/en-gb/magazine/cc188920.aspx
Gary
There is a nice messagebox control at Code Project in C# but works fine in VB.NET
Here is an example using 100 and 200 in the buttons in the attached text file