VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Add your code to the system tray

by Michael Barnathan (11 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (20 Votes)

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 VBC, please give me credit for the module.

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

Rate Add your code to the system tray

Download Add your code to the system tray

Download Add your code to the system tray (3 KB)

Add your code to the system tray Comments

No comments have been posted about Add your code to the system tray. Why not be the first to post a comment about Add your code to the system tray.

Post your comment

Subject:
Message:
0/1000 characters