2016-06-09 4 views
0

Die Linie in vbIch habe versucht, google, aber nicht gefunden, was ist MsgBoxStyle.Exclamation in vb?

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

ich in C# tat

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

aber nicht sicher, was die MsgBoxStyle.Exclamation sein sollte.

+0

Gleicher Code in VB. Verwenden Sie MessageBox.Show anstelle von MsgBox. –

Antwort

1

Sie müssen MessageBoxIcon.Exclamation verwenden, um Exclamation Symbol auf messagebox anzuzeigen.

MessageBox.Show("YourMessage", "Your Caption", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); 
Verwandte Themen