windows forms show error dialog code example
Example 1: messagebox.show c# error
MessageBox.Show("Some text", "Some title",
MessageBoxButtons.OK, MessageBoxIcon.Error);
Example 2: how to do a messagebox in c#
MessageBox.Show("Content", "Title", MessageBoxIcon.Error)