创建一个窗体,属性Name为:MessageDialog ,属性ControlBox为:false,属性最大框,最小框为false;ShowIcon,ShowInTaskbar为false;
其他可以根据自己爱好设置一些,如字体,字号,窗体形状等等。
就不多说了,代码如下:
  1自定义对话框[原创]using System;
  2自定义对话框[原创]using System.Collections.Generic;
  3自定义对话框[原创]using System.ComponentModel;
  4自定义对话框[原创]using System.Data;
  5自定义对话框[原创]using System.Drawing;
  6自定义对话框[原创]using System.Text;
  7自定义对话框[原创]using System.Windows.Forms;
  8自定义对话框[原创]
  9自定义对话框[原创]namespace BOM.NewUI.Assistant
 10}

使用时可如下方式:
 MessageDialog.Show(this, MessageIcon.Question, "中国*****技术服务公司", "提示信息", MessageBoxButtons.YesNo);
            MessageDialog.Show(this, MessageIcon.Locked, "中国*****技术服务公司", "提示信息", MessageBoxButtons.YesNo);
            MessageDialog.Show(this, MessageIcon.Shutdown, "中国*****技术服务公司", "提示信息", MessageBoxButtons.YesNo);
            MessageDialog.Show(this, MessageIcon.Stop, "中国*****技术服务公司", "提示信息", MessageBoxButtons.YesNo);
            MessageDialog.Show(this, MessageIcon.Help, "中国*****技术服务公司", "提示信息", MessageBoxButtons.YesNo);

相关文章:

  • 2022-01-29
  • 2021-12-09
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-09
  • 2021-07-09
  • 2021-11-14
  • 2021-09-13
  • 2021-10-05
相关资源
相似解决方案