free web hosting | website hosting | Web Hosting | Free Website Submission | shopping cart | Promoter Online | php hosting
affordable web hosting Pets web page hosting web hosting website hosting web hosting service web hosting web host
 

Main

Aplications

Games

User Controls

Class

Code Snipets

Tips

Add-Ins

Other stuff

Contact

Gest Book

About

The Control in use.

The code for the user control is finished, just drop it in a form, if you try to resize it
you can see that it can be resized.
Select a icon ( 16 by 16 pixels)  for the Trayicon Property and enter a text in the TrayTip property.
In the Form_Load insert TrayCtrl1.AddToTray and run the project.
A icon appears in the system tray. End the program, add a menu to the form and name that menu filemnu
and make it invisible, go to the code view select TrayCtrl1 and in the procedure LeftButtonDown insert
PopupMenu filemnu in the code, this will make the menu popup when you press the left mouse button
in the tray icon.
Also if you want to change a tray icon while you are running insert a button with the fowling code and insert a picture box in
the form with a icon in it:



Set MaxTrayCtrl1.TrayIcon = Picture1.Picture
MaxTrayCtrl1.TrayTip = "We have changed!"
MaxTrayCtrl1.UpdateTray


Run the project if you click with the left mouse button on the tray icon a menu will appear, if you click in the
command button the tray icon will change.
This control is finished!

 



TrayControl ] Create Custom Interface Members ] The API Declarations ] Code Please! ] Let the drawing begin! ] [ The Control in use ]

 

Links:

Page Last Updated: 02-07-2003