I have a notifyicon on my application and trying to show a ballontip, that works fine on Windows 7 and Windows 8.1, but i can't make it work in Windows 10.
Tried editing registry, increasing timeout, setting balloon tip icon and disabling notification as toasts.
This is how the component is initialized:
private void InitializeComponent()
{
// notifyIcon1
//
this.notifyIcon1.ContextMenuStrip = this.trayMenu;
this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
this.notifyIcon1.Visible = true;
this.notifyIcon1.BalloonTipClicked += new System.EventHandler(this.notifyIcon1_BalloonTipClicked);
this.notifyIcon1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon1_MouseDoubleClick);
And this is how i try to show de balloon tip:
void hideToTray()
{
notifyIcon1.BalloonTipTitle = SerialDevMan;
notifyIcon1.BalloonTipText = "Double-click to restore";
notifyIcon1.Visible = true;
notifyIcon1.ShowBalloonTip(2000);
this.Hide();
}
EDIT:
After all day trying i found a solution.
I created a new notifyicon tool called now "notifyicon2" and copied all the code to the new icon and it worked. But when i deleted the first one the second stopped working... recovering the first one did not made the second work again.
Created a new notifyicon, did all again and it is working as long as I keep another icon not visible on the form.
Perhaps it is a windows 10 bug, or is something that i cannot see now, i will keep my project like that for now.