使用C#.NET(Winforms)。如何在.NET中显示错误和警告消息框/如何自定义消息框
我想知道如何使用Ding!!
声音&显示消息框中的红色十字标记。这就是我说的:
如何做这样的事情对我的软件,自定义错误和自定义警告?
MessageBox.Show("asdf");
不给我定制。
使用C#.NET(Winforms)。如何在.NET中显示错误和警告消息框/如何自定义消息框
我想知道如何使用Ding!!
声音&显示消息框中的红色十字标记。这就是我说的:
如何做这样的事情对我的软件,自定义错误和自定义警告?
MessageBox.Show("asdf");
不给我定制。
试试这个:
尝试细节:使用任何选项..
MessageBox.Show("your message",
"window title",
MessageBoxButtons.OK,
MessageBoxIcon.Warning // for Warning
//MessageBoxIcon.Error // for Error
//MessageBoxIcon.Information // for Information
//MessageBoxIcon.Question // for Question
);
MessageBox.Show(
"your message",
"window title",
MessageBoxButtons.OK,
MessageBoxIcon.Asterisk //For Info Asterisk
MessageBoxIcon.Exclamation //For triangle Warning
)
MSDN:其他图标,您可以使用:http://msdn.microsoft.com /en-us/library/system.windows.forms.messageboxicon.aspx – claws 2010-01-21 14:00:25