Hey,
I have a class that has a right click event for my icon in the system tray. I would like to have a menu pop up, but I don't know the command for it.
Nick
Printable View
Hey,
I have a class that has a right click event for my icon in the system tray. I would like to have a menu pop up, but I don't know the command for it.
Nick
PopupMenu MyMenu
how did you call right click event?
put that in form mousedown event
What IDE (visual studio) version are you using?
i'am using vb6 and i want to catch event in my application system tray such as d-click right click .left click...........
I'm sorry it's been so long since I used VB6 I'm having a hard time recalling how to add a handler. I was hoping you were using a newer IDE and were just posting in the forum for ease. I'll try to find old code and get back to you.
I don't know if it will help you but a while back I did a sys tray usercontrol. You should be able to get an idea how to do a menu from it. Load up the vbg file and see if you can make anything of it.
Try it and see! Experiment. I haven't look at MarkT's code but I'm sure its good and it looks like its an ocx which you can either compile and load it as a control from your component list (you might ha e to browse to the ocx file location) or you could simple add it as a usercontrol to your form and use it!