开发者

Want to display a Visual notification in my C# Application

开发者 https://www.devze.com 2023-02-24 12:40 出处:网络
I want to display a Visual Notification blinking for the user in my application . For Example : Notification in the bottom right corner for the incoming call event ( Like old开发者_StackOverflow中文版

I want to display a Visual Notification blinking for the user in my application .

For Example : Notification in the bottom right corner for the incoming call event ( Like old开发者_StackOverflow中文版 office assistant wil do fine)

I dont want to use the MsgBox and other things.

Any Idea?


Insert an notify icon from the tool box and try the following code in any event you want

if (WindowState==FormWindowState.Minimized)
{
   BackupMinimizeNotification.Visible = true;
   Hide();
   BackupMinimizeNotification.BalloonTipTitle = "APP Hidden";
   BackupMinimizeNotification.BalloonTipText = "Your application has been minimized to the taskbar.";
   BackupMinimizeNotification.ShowBalloonTip(2000);
}
0

精彩评论

暂无评论...
验证码 换一张
取 消