How to show a custom error or warning message box in .NET Winforms? January 4, 2023 by Tarik Try this: MessageBox.Show("Some text", "Some title", MessageBoxButtons.OK, MessageBoxIcon.Error);