.NET WinForms Dialog Box icons

As a C# coder, I find myself trying to remember what the icons are when I create a popup Dialog/MessageBox. This post would also benefit my clients too. here goes:

MessageBox.Show("Asterisk message", "Asterisk title", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);








MessageBox.Show("Error message", "Error title", MessageBoxButtons.OK, MessageBoxIcon.Error);








MessageBox.Show("Exclamation message", "Exclamation title", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);








MessageBox.Show("Hand message", "Hand title", MessageBoxButtons.OK, MessageBoxIcon.Hand);








MessageBox.Show("Information message", "Information title", MessageBoxButtons.OK, MessageBoxIcon.Information);








MessageBox.Show("None message", "None title", MessageBoxButtons.OK, MessageBoxIcon.None);



MessageBox.Show("Question message", "Question title", MessageBoxButtons.OK, MessageBoxIcon.Question);



MessageBox.Show("Stop message", "Stop title", MessageBoxButtons.OK, MessageBoxIcon.Stop);



MessageBox.Show("Warning message", "Warning title", MessageBoxButtons.OK, MessageBoxIcon.Warning);


See you!