private void alertControl1_FormLoad(object sender, DevExpress.XtraBars.Alerter.AlertFormLoadEventArgs e) { e.AlertForm.Size = new System.Drawing.Size(300, 150); } private void alertControl1_BeforeFormShow(object sender, DevExpress.XtraBars.Alerter.AlertFormEventArgs e) { e.AlertForm.Size = new System.Drawing.Size(300, 150); }
注意:这2个事件中大小的参数一定要相同,否则将会出现下图结果