MessageBoxShow Method

Shows MessageBox with specified text, title text, buttons, icon and optionally the Close button.

Definition

Namespace: BeeMobile.MessageBox
Assembly: BeeMobile.MessageBox.AVA (in BeeMobile.MessageBox.AVA.dll) Version: 11.0.0.0+25fcde4cb1146137b36e11419a35b5b60dc956f0
C#
public static void Show(
	string sText,
	string sTitle,
	string[] buttons,
	Action<MessageBoxDismissedEventArgs>? dismissHandler = null,
	bool bHasCloseButton = false,
	MessageBoxIconEnum icon = MessageBoxIconEnum.Information
)

Parameters

sText  String
Contains text to be displayed in MessageBox body.
sTitle  String
Contains text to be displayed in MessageBox title.
buttons  String
Contains an array of strings which specify buttons to be displayed by MessageBox.
dismissHandler  ActionMessageBoxDismissedEventArgs  (Optional)
Method to be excuted by MessageBox as soon as it is dismissed.
bHasCloseButton  Boolean  (Optional)
Should MessageBox display a Close button in its upper-right corner?
icon  MessageBoxIconEnum  (Optional)
Specifies what icon should be displayed in upper-left corner of MessageBox.

Exceptions

NotSupportedExceptionThrown, if
  • buttons is null or
  • buttons is empty or
  • buttons contains more than 4 strings

See Also