Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NotifyIcon showing message from program

Tags:

c#

notifyicon

Just wondering if there is a way to display a message from the notifyicon when a certain event in the program is reached. Almost like a balloon popup. I cant seem to find anything online... This would be used to alert the user to a certain event in the program.

Thanks in advance!

like image 953
Tim Avatar asked Feb 16 '26 21:02

Tim


1 Answers

If you use notify icon:

        this.WindowState = FormWindowState.Minimized;
        notifyIcon1.Icon = new Icon(SystemIcons.Application, 40, 40);
        notifyIcon1.Visible = true;

Much like you can use the BallonTip member of the it:

        notifyIcon1.BalloonTipText = "The quick brown fox. Jump!";
        notifyIcon1.BalloonTipIcon = ToolTipIcon.Info;
        notifyIcon1.BalloonTipTitle ="Alert!";
        notifyIcon1.ShowBalloonTip(500);

You can use everytime certain event or condition is meet, you can always have the ShowBalloonTip method call.

like image 189
Peyton Crow Avatar answered Feb 18 '26 11:02

Peyton Crow



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!