Click or drag to resize

GTPUMessageBox Class

Displays a message box used to communicate with the end-user. Can contain text, icon and buttons for user interaction.
Inheritance Hierarchy
SystemObject
  ABB.Robotics.Tps.Windows.FormsGTPUMessageBox

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 class GTPUMessageBox

The GTPUMessageBox type exposes the following members.

Constructors
  NameDescription
Public methodGTPUMessageBox
Initializes a new instance of the GTPUMessageBox class
Top
Methods
  NameDescription
Public methodStatic memberCloseMessageBox
Sets a dialog result and closes the MessageBox.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberShow(Control, MessageBoxEventHandler, String, Object)
Displays a MessageBox inside an specific UI with an specified text.
Public methodStatic memberShow(Control, MessageBoxEventHandler, String, String, Image, String, Object)
Displays a MessageBox inside an specific UI with an specified text, caption, icon and buttons.
Public methodStatic memberShow(Control, MessageBoxEventHandler, String, String, Image, MessageBoxButtons, Object)
Displays a MessageBox inside an specific UI with an specified text, caption, image and buttons.
Public methodStatic memberShow(Control, MessageBoxEventHandler, String, String, MessageBoxIcon, String, Object)
Displays a MessageBox inside an specific UI with an specified text, caption, icon and buttons.
Public methodStatic memberShow(Control, MessageBoxEventHandler, String, String, MessageBoxIcon, MessageBoxButtons, Object)
Displays a MessageBox inside an specific UI with an specified text, caption, icon and buttons.
Public methodStatic memberShow(Control, MessageBoxEventHandler, String, String, Image, String, Boolean, Object)
Displays a MessageBox inside an specific UI with an specified text, caption, icon and buttons.
Public methodStatic memberShow(Control, MessageBoxEventHandler, String, String, Image, String, Control, Object)
Displays a MessageBox inside an specific UI with an specified text, caption, icon and buttons.
Public methodStatic memberShow(Control, MessageBoxEventHandler, String, String, MessageBoxIcon, String, Boolean, Object)
Displays a MessageBox inside an specific UI with an specified text, caption, icon and buttons.
Public methodStatic memberShow(Control, MessageBoxEventHandler, String, String, MessageBoxIcon, MessageBoxButtons, Boolean, Object)
Displays a MessageBox inside an specific UI with an specified text, caption, icon and buttons.
Public methodStatic memberShow(Control, MessageBoxEventHandler, String, String, MessageBoxIcon, MessageBoxButtons, Control, Object)
Displays a MessageBox inside an specific UI with an specified text, caption, icon and buttons.
Public methodStatic memberShow(Control, MessageBoxEventHandler, String, String, Image, String, Control, Boolean, Object)
Displays a MessageBox inside an specific UI with an specified text, caption, icon and buttons.
Public methodStatic memberShow(Control, MessageBoxEventHandler, String, String, MessageBoxIcon, MessageBoxButtons, Boolean, String, Object)
Public methodStatic memberShow(Control, MessageBoxEventHandler, String, String, MessageBoxIcon, MessageBoxButtons, Control, Boolean, Object)
Displays a MessageBox inside an specific UI with an specified text, caption, icon and buttons.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
The call that launches the Message box is asynchronous. Implement a MessageBoxEventHandler that will be called when the user has pressed a button.
Examples
The following code shows how to add an event handler to be executed when the user has closed the Message box.
class Foo : Control
{
    public void Test ()
    {
        GTPUMessageBox.Show(this, new MessageBoxEventHandler(this.MessageBox_Closing),  "message");
    }

    private void MessageBox_Closing(object sender, MessageBoxEventArgs me)
    {
        ...
        // The dialog result and the text associated with the pressed button are available through the second parameter.
        ...

    }
}
NOTE: The UI created for the Message Box calls Dispose after the MessageBoxEventHandler has been called.
See Also