GTPUMessageBoxShow Method (Control, MessageBoxEventHandler, String, String, MessageBoxIcon, String, Object) |
Displays a MessageBox inside an specific UI with an specified text, caption, icon and buttons.
Namespace:
ABB.Robotics.Tps.Windows.Forms
Assembly:
ABB.Robotics.GTPU.Windows.Forms (in ABB.Robotics.GTPU.Windows.Forms.dll) Version: 6.5.129.0
Syntax public static void Show(
Control owner,
MessageBoxEventHandler callback,
string text,
string caption,
MessageBoxIcon icon,
string[] strButtons,
params Object[] state
)
Parameters
- owner
- Type: System.Windows.FormsControl
The UI where the MessageBox will be showned. - callback
- Type: ABB.Robotics.Tps.Windows.FormsMessageBoxEventHandler
Handler to notity when the MessageBox has been closed. - text
- Type: SystemString
The text to display in the MessageBox. - caption
- Type: SystemString
The text to display in the title bar of the MessageBox. - icon
- Type: System.Windows.FormsMessageBoxIcon
One of the MessageBoxIcon values (Error, Information, Question...). - strButtons
- Type: SystemString
An array of strings that represent the buttons to be shown. - state
- Type: SystemObject
Optional argument. An object containing data to be used by the callback. This state could be retrieved using State.
NOTE: Neither state accepts more than one optional arguments, only the first one will be used.
See Also