use messagebox in class extended fro Form class c# code example
Example: c# MessageBox
MessageBox.Show("text", "title", MessageBoxButtons.OK, MessageBoxIcon.Warning);
MessageBox.Show("text", "title", MessageBoxButtons.OK, MessageBoxIcon.Warning);