System.Windows.Forms.MessageBox Class

Displays a message box that can contain text, buttons, and symbols that inform and instruct the user.

See Also: MessageBox Members

Syntax

public class MessageBox

Remarks

You cannot create a new instance of the System.Windows.Forms.MessageBox class. To display a message box, call the static method MessageBox.Show(string, string, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, bool). The title, message, buttons, and icons displayed in the message box are determined by parameters that you pass to this method.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0