/// <summary>
/// 右下角消息框
/// </summary>
/// <param name="_RibbonForm"></param>
public static void AlertMsg(this RibbonForm _RibbonForm, string meg = "读取已完成")
{
var alertControl = new AlertControl
{
FormMaxCount = 1,
FormLocation = AlertFormLocation.BottomRight,
};
alertControl.FormLoad += (s, e) =>
{
e.AlertForm.Size = new System.Drawing.Size(250, 120);
int Height = Screen.AllScreens[0].WorkingArea.Height;
int Width = Screen.AllScreens[0].WorkingArea.Width;
e.AlertForm.Location = new System.Drawing.Point((Width - alertControl.AlertFormList[0].Width), (Height- alertControl.AlertFormList[0].Height));
};
alertControl.Show(_RibbonForm, "操作提示", meg);
alertControl.Dispose();
}
DevExpress AlertControl 基本设置
最新推荐文章于 2021-11-26 19:48:14 发布