system.windows.messagebox examples Example: c# MessageBox MessageBox.Show("text", "title", MessageBoxButtons.OK, MessageBoxIcon.Warning);