
02-20-2001, 11:58 PM
|
|
|
One more question...
|
OK, using the vast knowlege on this forum and vb-world.net I've got my program to create a system tray icon. Using my knowledge of pop-up menus I managed to get a menu to appear when you right click on the icon.
The problem is when I right click on the Icon it doesn't do anything. I have to right click on it twice in order to get the pop-up menu to appear.
The reason for this (I think) is when I right click on the icon the first time, It has to deselect the current window (whatever window that may be) and select the system tray, then the second time it is able to pop-up the menu.
The question is, how do I stop this. When I rightclick on other programs icons the current window is deselected (the title bar turns grey) and the menu pops up at the same time, therefore only needing one click.
I hope you can understand this. It is a little confusing. If you need more info, I can attach a code segment to show you what I mean.
|
|