Sharon Gabriel Sharon Gabriel - 4 months ago 9x Question

I tried to google but didn't find what is MsgBoxStyle.Exclamation in vb?

The line in vb

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

I did in c#

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

But not sure what the MsgBoxStyle.Exclamation should be.


You need to use MessageBoxIcon.Exclamation to show Exclamation icon on messagebox.

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