Marketplace products
JK TrayIcon
- Cost
- Free
- Version
- 1
Page 3 of 3
- Overview
- Screen Shots
- Readme
Readme
-----------------------------------------------------------------
This control has been distributed, with permission
of the author by vbweb.co.uk
Please direct comments or queries to
jason_k_3431@yahoo.com
-----------------------------------------------------------------
This control lets you add your program to the system tray, with only
one line of code!
'before using this code you need to set the picture property of the control
'to the icon you want displayed in the system tray
trayIcon.Add 'where trayIcon is the name of the control
------------------------------------------------------------------
Basic Usage
- Draw the control onto the form. It is hidden (you don't see it
at run-time.) - name it tryIcon (or whatever)
- Set the Picture and ToolTipText properties.
Picture: the icon that is shown in the tray
ToolTipText: the text that is shown when the mouse hovers.
- To show the icon in the system tray, call the Add method
- To remove the icon in the system tray, call the Remove method.
You don't need to call the Remove method when your application
quits... this will be done automatically.
That's it!
------------------------------------------------------------------
More Advanced Usage...
- To show a popup menu, insert the following code in the MouseUp event,
where mnuTray is the popup menu you want to display. There is more information
in the VB online help on creating menus.
If Button = vbRightButton Then
PopupMenu mnuTray
End If
- There are also LeftDblClick, RightDblClick, MouseDown, MouseUp and MouseMove events.
- To restore your program, call the Restore method. If you want to remove the icon from
the system tray, call the Remove method too.
- You can change the system tray icon by changing the Picture property at runtime,
to create an icon similar to the connection monitor.
- For more examples, take a look at the example project
------------------------------------------------------------------
If you use this, or have any tips, questions, etc., please email
me, so i know how well it's doing in the "real world" - this is
my first distributable project.
jason_k_3431@yahoo.com
-jason
-----------------------------------------------------------------
Use this control at your own risk... don't blame us!
I thought it was a well done job. If you dont know enough to register an ocx and NOT use the old project file, you may not need the control.
Simply register the ocx where you want it, generally in the Windows/System directory. Next simply open the examples form in VB. After this, load the ocx on the control bar and then place it on the form. Re-save the form, the project file, and you have it. It runs perfect for me. However, I wish it had a right click menu shown. Ahhh, with all the effort of writing the control, the user should know how to do this ones self if using this ocx.
Best,
Will
just because you couldn't be bothered to sort it doesn't mean it's not worth downloading
Very nicely done, i've always wanted to do this! Only prob is the fact u forget to say that the pics gotta be of a certain sort or size. I only got it to work after using ur default red mouse ico. I will experiment later with this. Overall well.
When you download it and run it through VB you get a few errors. To fix it you have to sort it out yourself, getting the forms and controls loaded correctly. I didnt bother, not worth dloading
This thread is for discussions of JK TrayIcon.