How to show a message with icon in the notification area

前端 未结 3 2093
执念已碎
执念已碎 2020-12-11 16:36

I am writing code in which if updates are available then I want to show a pop up message with balloon using C#. This is similar to \"Java Updates available\".

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-11 16:56

    Got the correct output as desired with the below code.

    notifyIcon1.Visible = true;
    notifyIcon1.Icon = SystemIcons.Exclamation;
    notifyIcon1.BalloonTipTitle = "Balloon Tip Title";
    notifyIcon1.BalloonTipText = "Balloon Tip Text.";
    notifyIcon1.BalloonTipIcon = ToolTipIcon.Error;
    notifyIcon1.ShowBalloonTip(1000);
    

    Thanks @Bhushan for your suggestion....

提交回复
热议问题