【发布时间】:2012-05-25 00:46:37
【问题描述】:
在我的消息框中,而不是感叹号图标,它只将图标显示为“警告”?我在这里缺少什么简单的东西,因为它让我无法弄清楚。
MessageBox.Show ( MessageBoxIcon.Exclamation + "Delete" + " " + >(statesListBox.SelectedItem.ToString()) + " " + "Are you sure?", "Delete" + " " + >(statesListBox.SelectedItem.ToString()));
【问题讨论】:
-
在 MessageBoxButtons 旁边的重载中使用 MessageBoxIcon.Warning
-
试试这个:
MessageBox.Show("hello", "header", MessageBoxButtons.OK, MessageBoxIcon.Warning); -
Mike,拿起一本编程书:stackoverflow.com/questions/194812/…
-
我有我的程序的当前书籍,并且我忽略了一个简单的错误,使其正常运行,但感谢让我的问题看起来如此无效:)
-
看看代码,想知道在字符串中添加图标有什么意义。
标签: c# icons messagebox