public static DialogResult Show(string txtMessage, string Dialog) { newMessageBox = new frmMsgBox(); newMessageBox.lblMsg.Text = txtMessage; newMessageBox.ShowDialog(); return(_buttonResult); }
public static void Show(string txtMessage) { newMessageBox = new frmMsgBox(); newMessageBox.btnCancel.Visible = false; newMessageBox.btnOK.Dock = DockStyle.Bottom; newMessageBox.lblMsg.Text = txtMessage; newMessageBox.ShowDialog(); }