VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



System Tray OCX Control

by Michael Hollifield (1 Submission)
Category: OLE/COM/DCOM/Active-X
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

This control (source in the zip) is for adding your program to the windows system tray. It will handle the right and left mouse clicks, tooltips and icons. Real easy to use. Not messy. Just compile or use the ocx that included in the zip
Updated for Image changing in tray
Vote if you like it

Inputs
To add a icon: sysiconcontrol.addtoTray Me,mnuLeft,mnuRight,"ToolTipText" To change the tooltip text sysiconcontrol.tooltiptext = "ABCDEFG"
Assumes
This code will remove the icon from the tray automaticly. Just close your program and it will do so. Also the icon is the icon from the form that this control is placed on. To update the icon just set the Image property of the control and there you go
Code Returns
Doesnt return anything
Side Effects
No sideeffects currently known

Rate System Tray OCX Control

Download System Tray OCX Control

Download System Tray OCX Control (10 KB)

System Tray OCX Control Comments

No comments have been posted about System Tray OCX Control. Why not be the first to post a comment about System Tray OCX Control.

Post your comment

Subject:
Message:
0/1000 characters