If you all think this will help you, I've written a wrapper to send forms to the system tray.
I have it attached.
On your form, make a non-visible menu titled:
trayPopup
(no mnu prefix).
Then, to add the form to the system tray, call:
GotoTray Me
The first time (like on form load)
And then to actually show it in the system tray any time other than the first (although doing it again does not hurt):
ShowInTray Me, True
And to hide it from the tray (like in the form_queryUnload function):
ShowInTray Me, False
Also, make sure that you onload the tray icon before exiting the program or a ghost will remain in the tray.




Reply With Quote