1.5 AlertControl控件
AlertControl控件能改在应用程序中显示警告窗口,
通常该警告窗口显示为: 出现在右下角的一个短的提示框并且会自动关闭,
可以在该窗口中指定标题、文本、图像,并定义相应的处理事件。
实现效果如图:
实现代码如下:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraBars.Alerter;
namespace DXApplication_1
{
public partial class AlertControlForm : DevExpress.XtraEditors.XtraForm
{
public AlertControlForm()
{
InitializeComponent();
}
private void AlertControlForm_Load(object sender, EventArgs