【发布时间】:2018-03-15 02:35:56
【问题描述】:
我正在开发一个客户端和服务器之间的小型聊天应用程序。
我希望在收到消息并且聊天窗口最小化时收到通知(例如在实时信使中)
这是我将收到的消息附加到的方法。
public void AppendChat(string msg)
{
if (InvokeRequired)
{
this.Invoke(new Action<string>(AppendChat), new object[] { msg });
return;
}
txtChat.AppendText(GetTime() + msg + Environment.NewLine + Environment.NewLine);
if (this.WindowState == FormWindowState.Minimized)
{
//... what should I write in here?
}
}
对不起,我的英语不好。我希望我为这些问题写了正确的词。
【问题讨论】:
标签: c# winforms notifications