I would like to have a procedure that I can do some operations when there is a double-click on a sys tray icon I have created.
Printable View
I would like to have a procedure that I can do some operations when there is a double-click on a sys tray icon I have created.
Have a look at this tip:
http://www.vb-world.net/tips/tip61.html
Ok, that works for a picture box, what if I am using an image list to store my icons??
I think that you would want to add a picture box as well as your image list to handle the events - double clicking, etc. You would replace this line
With this line:Code:Tic.hIcon = Picture1.Picture
Try that. It should work.Code:Tic.hIcon = ImageList1.ListImages(1).Picture