public static void message(string message, string frameTxt, string title) { alert xwindow = new alert(); xwindow.body.Text = message; xwindow.body.CanSelect.Equals(false); xwindow.groupBox1.Text = frameTxt; xwindow.titleStrip.Text = title; xwindow.ShowDialog(); }