Click or drag to resize

GTPUMessageBoxShow Method (Control, MessageBoxEventHandler, String, String, Image, MessageBoxButtons, Object)

Displays a MessageBox inside an specific UI with an specified text, caption, image 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,
	MessageBoxButtons buttons,
	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.
buttons
Type: System.Windows.FormsMessageBoxButtons
One of the MessageBoxButtons values that specifies which buttons to display in MessageBox.
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 tna one optional arguments, onl the first one will be used.
See Also