2016-06-09 18 views
0

在VB我試圖谷歌,但沒有找到什麼是vb MsgBoxStyle.Exclamation?

MsgBox("No input file selected please press the 'Add File' button.", MsgBoxStyle.Exclamation, "Error"); 

線我在C#中做

MessageBox.Show("No input file selected please press the Add File button.", MsgBoxStyle.Exclamation, "Error"); 

但不知道MsgBoxStyle.Exclamation應該是什麼。

+0

VB中的相同代碼。使用MessageBox.Show代替MsgBox。 –

回答

1

您需要使用MessageBoxIcon.Exclamation才能在消息框中顯示Exclamation圖標。

MessageBox.Show("YourMessage", "Your Caption", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); 
相關問題