Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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".

Balloon tool tip

With the help of the NotifyIcon class and the BalloonTipIcon property, I can show the icon in the notification area but not this type of message. Any suggestions will be helpful.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
290 views
Welcome To Ask or Share your Answers For Others

1 Answer

You can use NotifyIcon for this.

this.WindowState = FormWindowState.Minimized;  
notifyIcon.BalloonTipIcon = ToolTipIcon.Info;
notifyIcon.BalloonTipTitle = "Notify Icon Test Application";
notifyIcon.BalloonTipText = "You have just minimized the application." + 
                            Environment.NewLine + 
                            "Right-click on the icon for more options.";

notifyIcon.ShowBalloonTip(5000);

This will generate popup like one as below:

enter image description here

You can find more details on this link.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...