Show a message with an icon in the notification area

I am writing code in which, if updates are available, I want to show a balloon pop-up message using C #. This is similar to Available Java Updates.

Balloon tool tip

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

+7
c #
source share
3 answers

Get the correct output as desired using the code below.

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

0
source share

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 create a popup similar to the one below:

enter image description here

You can find more information about this link .

+12
source share

There is a very simple one-line command that you can write for this, instead of doing all that huge thing that others offer:

 notifyIcon1.ShowBalloonTip(1000, "Text", "Title", ToolTipIcon.Warning); 

Remember that you need to initialize the control in your application first for this code to work. You can customize the control name and command options to suit your needs.

0
source share

All Articles