Click to See Complete Forum and Search --> : system tray popup menu problem


skpanda
January 13th, 2004, 03:46 AM
hello,

here is a problem..
in my project i m showing the program icon in the system tray when it is installed( like yahoo messanger icon when installed).now i want to take the mouse on the icon and right button clicked.it should show the popup menu containing one item string when i passed 0(zero) to a variable which is saved in a system file(created for my project) .now i changed the file by giving some other value
like 1(one) to the variable ,save that file,then i took my mouse on the icon and right click,this time it should show 2 items in the menu for examp. 1.messanger, 2. logon etc. in the popup menu.

how can i achieve this dynamically without restarting the computer .

point : my file variable value is read by registry and setting the new value correctly, which i tested by putting messageBox..so i m reading from the registry either 0 or 1 correctly. the problem is how to create dynamically these 2 menus one having one item & the other having 2 items according to the values passed either 0 or 1 respectively???

any idea anybody???

skpanda