Search Tools Links Login

System Tray OCX Control


Visual Basic 6, or VB Classic

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

Original Author: Michael Hollifield

Inputs

To add a icon:
sysiconcontrol.addtoTray Me,mnuLeft,mnuRight,"ToolTipText"
To change the tooltip text
sysiconcontrol.tooltiptext = "ABCDEFG"

Assumptions

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

Returns

Doesnt return anything

Side Effects

No sideeffects currently known

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 368 times

Categories

Visual Basic 6

Attachments

CODE_UPLOAD1060410122000.zip
Posted: 9/3/2020 3:45:00 PM
Size: 10,108 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.