DevExpress AlertControl提示控件的使用

发布时间 2024-01-04 16:11:14作者: 【君莫笑】
拖入AlertControl控件
public partial class Form30 : Form
    {
        public Form30()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //设置单窗口出现弹出的速度
            this.alertControl1.FormDisplaySpeed = DevExpress.XtraBars.Alerter.AlertFormDisplaySpeed.Fast;
            //设置显示多少时间窗口会自动关闭 以毫秒为单位
            this.alertControl1.AutoFormDelay = 7000;
            //设置提出窗口的显示的位置
            this.alertControl1.FormLocation = DevExpress.XtraBars.Alerter.AlertFormLocation.BottomRight;
            this.alertControl1.Show(this, "提示!", "您有一条消息!");
        }
    }