利用委托弹出一个非模态对话框

View Code
System.Threading.Tasks.Task.Factory.StartNew(() =>
System.Windows.Forms.MessageBox.Show(string.Format("用户{0} [{1}]上线", user.userName, user.userId)));
原文地址:https://www.cnblogs.com/sirkevin/p/2245346.html