【发布时间】:2011-11-13 16:45:18
【问题描述】:
我对 devexpress AlertControl 有一个奇怪的问题。我使用此代码创建警报
AlertInfo alertInfo = new AlertInfo(caption, text);
AlertControl control = new AlertControl();
control.FormLocation = AlertFormLocation.BottomRight;
control.Show(null,alertInfo);
此代码放置在 backgroundWorker_DoWork 函数中,它应该不时显示警报。问题是没有显示警报。我可以看到调用了 show 方法,但是没有显示警报。 根据文档,我将 null 作为 Show function 的参数传递,通知应显示在主监视器上。 我该怎么做才能让它发挥作用?
【问题讨论】:
标签: c# winforms devexpress