Sharon Gabriel Sharon Gabriel - 2 years ago 83 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.

Answer Source

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

MessageBox.Show("YourMessage", "Your Caption", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download