ZTray.ocx
---------
http://www.lucidyne.com/Marcus

The ZTray is released as freeware.  Use is as you please!

To install the OCX, do the following:

copy the ZTray.ocx and ZTray.hlp files to the directory you want them in.

type the following command from that directory: REGSVR32 ZTRAY.OCX.  If you do not have regsvr32 available, it was included in this archive.

Now you should be able to run VB and see the ZTray available.

Pressing F1 on the control will bring up help.


Notes on use:
-------------

The icon for the System tray must be in an ImageList.

The picture you wish to use MUST be an icon (windows limitation).

If you do not setup an icon, the globe icon is the default.

You do not have to turn off the ZTray icon before quitting your program, as it is all handled correctly by the OCX.

Be sure to try out the sample program to see how it works and to see fully commented code on it's use.

If you hiede the form, the icon is still visible on the tray.  In this way you can make clicking the icon bring your form up.

If you want to bring a popup menu when the tray icon is clicked, call "SetForegroundWindow (Me.hwnd)" before calling the popup menu.  This is the proper way to call a popup menu, so that it goes away when you click away from the menu.  The SetForegroudWindow is an API call, be sure to declare it.

Questions?  Comments? Like to thank me? 
---------------------------------------

Send E-Mail to trism@peak.org

Wish to thank me in a greater manner:

I would not mind a copy of any program you write using my control, or of course, nobody turns down money.

-Marcus Trisdale
http://www.lucidyne.com/Marcus
