Exemple #1
0
        public static void MsgBox(string strMsg, string strTitle)
        {
            frmMsg frm = new frmMsg();

            frm.lblMsg.Text   = strMsg;
            frm.Text          = strTitle;
            frm.btnOk.Visible = true;
            frm.ShowDialog();
            frm.Dispose();
        }
Exemple #2
0
        public static bool MsgBox(string strMsg, string strTitle, bool blDialog)
        {
            frmMsg frm = new frmMsg();

            frm.lblMsg.Text    = strMsg;
            frm.Text           = strTitle;
            frm.btnYes.Visible = true;
            frm.btnNO.Visible  = true;
            frm.ShowDialog();
            frm.Dispose();

            return(blMsg);
        }