Sharon Gabriel Sharon Gabriel - 5 months ago 14
Vb.net 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

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

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