G
Guest
I have C# code that runs during login (HKEY_LOCAL_MACHINE\\...\\Run...)
This applications main user interface is a notifyicon with a popup menu to
open a larger form.
Orignally I had a problem where the tray icon would only appear
intermitently on reboot. A work around I have place now is to "flash" the
tray icon using the notifyicon.visible property (5 times , 1/2 second not
visible, 1/2 second visible).
This solved the problem of internitent no tray icon, but introduced a
problem of sometimes having multiple tray icons until I hover over some and
the excess ones go away.
I saw an example somewhere that talked about this problem in the context of
shell_notifyIcon dll import and worked around the issue by periodically
retrying the shell_notifyIcon method until it returned "true".
My question is - (in C#, using the notifyIcon forms object) how can I tell
when the notifyicon visible property is successful so I can stop flashing the
icon and hopefully only have one in the tray?
Thanks,
Jim Mead
This applications main user interface is a notifyicon with a popup menu to
open a larger form.
Orignally I had a problem where the tray icon would only appear
intermitently on reboot. A work around I have place now is to "flash" the
tray icon using the notifyicon.visible property (5 times , 1/2 second not
visible, 1/2 second visible).
This solved the problem of internitent no tray icon, but introduced a
problem of sometimes having multiple tray icons until I hover over some and
the excess ones go away.
I saw an example somewhere that talked about this problem in the context of
shell_notifyIcon dll import and worked around the issue by periodically
retrying the shell_notifyIcon method until it returned "true".
My question is - (in C#, using the notifyIcon forms object) how can I tell
when the notifyicon visible property is successful so I can stop flashing the
icon and hopefully only have one in the tray?
Thanks,
Jim Mead