Click or drag to resize

GTPUMessageBoxShow Method (Control, MessageBoxEventHandler, String, String, Image, String, Control, 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
C#
public static void Show(
	Control owner,
	MessageBoxEventHandler callback,
	string text,
	string caption,
	Image imageIcon,
	string[] strButtons,
	out Control ctrl,
	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 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.
imageIcon
Type: System.DrawingImage
The image to displaye in the MessageBox. The maximum size of this image is 50 x 50.
strButtons
Type: SystemString
An array of string that represent the buttons that will be showned as options.
ctrl
Type: System.Windows.FormsControl
The reference the UI of the Message Box. This reference must not be disposed by the client.
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