Search Tools Links Login

Add your code to the system tray


Visual Basic 6, or VB Classic

Ever wonder how all of those other software programs put themselves in the system tray(The start menu icon list at the bottom of the screen)? Well, this code, centered around traymodule.bas and written entirely by me, will do just that. Just use the RespondToTray(X) function in the Form_Mousemove event and call addtotray and removefrom tray when you want to add or remove your icon from the tray. You can customize tool-tips(The yellow labels), the icon appearing in the tray, and the form to have it respond to when you click the tray. You may use this module in any program you'd like, although if you're going to post a program using this on PSC, please give me credit for the module.

Original Author: Michael Barnathan

Side Effects

Make sure you remove the icon from the tray in the Form_Unload event, or it will stay there for about 30 seconds

About this post

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

Categories

Visual Basic 6

Attachments

CODE_UPLOAD50484212000.zip
Posted: 9/3/2020 3:45:00 PM
Size: 3,235 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.