MessageBox.Show("内容","标题")
// 摘要:
// 使用指定的帮助文件、HelpNavigator 和帮助主题显示一个具有指定文本、标题、按钮、图标、默认按钮、选项和"帮助"按钮的消息框。
// 参数:
// text:
// 要在消息框中显示的文本。
// caption:
// 要在消息框的标题栏中显示的文本。
// buttons:
// System.Windows.Forms.MessageBoxButtons 值之一,可指定在消息框中显示哪些按钮。
// icon:
// System.Windows.Forms.MessageBoxIcon 值之一,它指定在消息框中显示哪个图标。
| 成员名称 | ||
| Asterisk | ||
| Error | ||
| Exclamation | ||
| Hand | ||
| Information | ||
| None | ||
| Question | ||
| Stop | ||
| Warning |
// defaultButton:
// System.Windows.Forms.MessageBoxDefaultButton 值之一,可指定消息框中的默认按钮。
// options:
// System.Windows.Forms.MessageBoxOptions 值之一,可指定将对消息框使用哪些显示和关联选项。若要使用默认值,请传入0。
// helpFilePath:
// 用户单击"帮助"按钮时显示的"帮助"文件的路径和名称。
// navigator:
// System.Windows.Forms.HelpNavigator 值之一。
// param:
// 用户单击"帮助"按钮时显示的帮助主题的数值 ID。
// 返回结果:
// System.Windows.Forms.DialogResult 值之一。
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, object param);
浙公网安备 33010602011771号