PagePorter Class Library

Global.MessageBox Method (String, MessageBoxButtons, MessageBoxIcon)

Displays a Windows message box with user-defined buttons and icon.

[Visual Basic]
Overloads Public Shared Function MessageBox( _
   ByVal msg As String, _
   ByVal buttons As MessageBoxButtons, _
   ByVal icon As MessageBoxIcon _
) As DialogResult
[C#]
public static DialogResult MessageBox(
   string msg,
   MessageBoxButtons buttons,
   MessageBoxIcon icon
);

Parameters

msg
The message to display.
buttons
One or more MessageBoxButtons values.
icon
A MessageBoxIcon value to specify the icon.

Return Value

A DialogResult value depending on which button the user pressed.

See Also

Global Class | Parastream.PagePorter Namespace | Global.MessageBox Overload List