I would like to implement the buzz function in our chat. I created a popup tooltip and flash to emphasize the presence of a new message while the chat window is in a minimized state. The code is below. But now I wanted to implement a buzz function when I click or press a key to restore the chat window to its maximum state.
this.nfiBroadcast.Icon = Resource1.chat; nfiBroadcast.ShowBalloonTip(2000, "New broadcast message received..!", "" + msg.senderDisplayName + " messaged you.", ToolTipIcon.Info); if (this.WindowState == FormWindowState.Minimized) { this.WindowState = FormWindowState.Minimized; FlashWindow.Flash(this, 3); }
How can I implement it?
source share