[置顶] [DotNetBar](二)-MessageBox

DevComponents.DotNetBar.MessageBoxEx ==MESSAGEBOX

十一种提示消息:

常用的两种:

1.提示警告

   DevComponents.DotNetBar.MessageBoxEx.Show("");

  MessageBoxEx.Show("请输入要查询的内容", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Stop);

2.确定与取消
                        if (DevComponents.DotNetBar.MessageBoxEx.Show("很抱歉,您输入的账号或密码有误请重输?", "友情提示", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes)
                        {

                            do something
                        }

 

3.询问

            if (MessageBoxEx.Show("您确定退出本系统吗?", "系统提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
            {
                e.Cancel = false;
            }
            else
            {
                e.Cancel = true;
            }

你可能感兴趣的:([置顶] [DotNetBar](二)-MessageBox)