Reputation: 83
I set my NotifyIcon of the boot form as follows:
thinking about getting something like:
But it doesn't show me anything when I hover over the icona in the systemtray. How come? what am I wrong
Upvotes: 0
Views: 576
Reputation: 37
The balloon is only shown when you call NotifyIcon.ShowBalloonTip(timeout), not when you hover on the system tray icon, and it uses BalloonTipText and BalloonTipTile properties. You have to handle this method in some event or function. For example, you could do this when you minimize the form:
NotifyIcon.Visible = True
NotifyIcon.ShowBalloonTip(2000, "MyApp", "The program is still running!", ToolTipIcon.Info)
When you hover on the icon and the icon is visible, instead, only a tooltip appears. The tooltip displays the string set in the Text property and doesn't use BalloonTipText and BalloonTipTile. So you don't have to handle the hover, the ToolTip should automatically appear. If the issue persists, try to set Visible = False in the designer in order to see whether setting Visible = True works and make sure that there isn't any instruction that throws exception before the ShowBalloonTip method.
Upvotes: 1