public static DialogResult ShowMsgBox(string strContent, string strCaption, MBIconType iconType, MBButtonType btnType)
        {
            MsgForm form = new MsgForm();

            form.Content    = strContent;
            form.Text       = strCaption;
            form.IconType   = iconType;
            form.ButtonType = btnType;
            form.AutoSize   = true;

            return(form.ShowDialog());
        }
Example #2
0
        public static DialogResult ShowMsgBox(string strContent, string strCaption, MBIconType iconType, MBButtonType btnType)
        {
            MsgForm form = new MsgForm();

            form.Content = strContent;
            form.Text = strCaption;
            form.IconType = iconType;
            form.ButtonType = btnType;
            form.AutoSize = true;

            return form.ShowDialog();

        }
 public static DialogResult ShowMsgBox(string strContent, string strCaption, MBIconType iconType)
 {
     return(ShowMsgBox(strContent, strCaption, iconType, MBButtonType.MBBtn_OK));
 }
Example #4
0
 public static DialogResult ShowMsgBox(string strContent, string strCaption, MBIconType iconType)
 {
     return ShowMsgBox(strContent, strCaption, iconType, MBButtonType.MBBtn_OK);
 }