Quadrition
Quadrition

Reputation: 173

Notify Icon doesn't show on different os

I created program in Windows 10 OS but notify icon doesn't show up in my second computer that runs Windows 7. Here is code for notify icon:

notifyIcon1.Icon = SystemIcons.Exclamation;
notifyIcon1.BalloonTipTitle = "Licenca";
notifyIcon1.BalloonTipIcon = ToolTipIcon.Warning;
notifyIcon1.BalloonTipText = "Some text.";
notifyIcon1.ShowBalloonTip(3000);
notifyIcon1.Dispose();

Upvotes: 0

Views: 40

Answers (1)

Thomas Levesque
Thomas Levesque

Reputation: 292435

notifyIcon1.Dispose() destroys the icon, so it disappears immediately. You should remove this line. Also, make sure that notifyIcon1.Visible is set to true, or the icon will never show up.

Upvotes: 1

Related Questions