Mattersphere Developers Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
avatar
Admin
Admin
Posts : 122
Join date : 2018-12-17
https://mattersphere-devs.forumotion.com

Change Text On Message Box Buttons Empty 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
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);
Regards
Danny
_________________________________________________________________________________________________________
Thanks Danny, This is working great, but is there a way to make the buttons bigger?
Regards,
Romie
Back to top
Permissions in this forum:
You cannot reply to topics in this forum