Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.5.2 Assembly / C1.Win.C1Editor.UICustomization Namespace / IMessageBox Interface / Show Method
Any object that implements System.Windows.Forms.IWin32Window that represents the top-level window that will own the modal dialog box.
The text to display in the message box.
The text to display in the title bar of the message box.
One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
One of the System.Windows.Forms.MessageBoxIcon values that specifies which icon to display in the message box.

In This Topic
    Show Method (IMessageBox)
    In This Topic
    Shows the dialog window.
    Syntax
    'Declaration
     
    Function Show( _
       ByVal owner As System.Windows.Forms.IWin32Window, _
       ByVal text As System.String, _
       ByVal caption As System.String, _
       ByVal buttons As System.Windows.Forms.MessageBoxButtons, _
       ByVal icon As System.Windows.Forms.MessageBoxIcon _
    ) As System.Windows.Forms.DialogResult
    System.Windows.Forms.DialogResult Show( 
       System.Windows.Forms.IWin32Window owner,
       System.string text,
       System.string caption,
       System.Windows.Forms.MessageBoxButtons buttons,
       System.Windows.Forms.MessageBoxIcon icon
    )

    Parameters

    owner
    Any object that implements System.Windows.Forms.IWin32Window that represents the top-level window that will own the modal dialog box.
    text
    The text to display in the message box.
    caption
    The text to display in the title bar of the message box.
    buttons
    One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
    icon
    One of the System.Windows.Forms.MessageBoxIcon values that specifies which icon to display in the message box.

    Return Value

    One of the System.Windows.Forms.DialogResult values.
    See Also