Popup menu on system tray icon
Posted on 2000-04-07
I have successfully put a system tray icon in my program, i have made it so when you right click on the icon a menu pops up. the only problem with it is the menu wont go away. usually they dissapear when you click on something else on the screen, but mine stays there.
here is the code.
Select Case X
Form1.WindowState = vbNormal
Dim hProcess As Long
GetWindowThreadProcessId hwnd, hProcess
Me.PopupMenu Me.Menu " <<-- HERE!!
can someone tell me what im doing wrong?