Change Text On Message Box Buttons
Mon 27 Jan 2020 - 17:23
Hi,
Is it possible to show a message box with custom labels on each of the buttons rather than having to use yes no and cancel all the time?
Thanks,
Romie
______________________________________________________________________________________________________________________
Hi
You need to use the MessageBox Class Sample Below
Danny
_________________________________________________________________________________________________________
Thanks Danny, This is working great, but is there a way to make the buttons bigger?
Regards,
Romie
Is it possible to show a message box with custom labels on each of the buttons rather than having to use yes no and cancel all the time?
Thanks,
Romie
______________________________________________________________________________________________________________________
Hi
You need to use the MessageBox Class Sample Below
- Code:
FWBS.OMS.UI.Windows.MessageBox mgs =
new FWBS.OMS.UI.Windows.MessageBox(new ResourceItem("Please choose from the following Greetings",""));
mgs.Buttons = new string[3] { "Hi", "Hello", "Morning" };
mgs.DefaultButton = "Hi";
mgs.Caption = "Greeting Selector";
mgs.Icon = mgs.ConvertMessageBoxIconToImage(MessageBoxIcon.Question);
string result = mgs.Show();
FWBS.OMS.UI.Windows.MessageBox.ShowInformation("You have Selected : " + result);
Danny
_________________________________________________________________________________________________________
Thanks Danny, This is working great, but is there a way to make the buttons bigger?
Regards,
Romie
Permissions in this forum:
You cannot reply to topics in this forum