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(); }