Click to See Complete Forum and Search --> : Sys Tray Popup Menu Problems
TDO
July 27th, 2000, 10:04 AM
I seem to have problems on WinNT after I put an icon into the System Tray. When the user right clicks on the icon, a popup menu gets displayed. The only probelem is, in order for it to go away they must select something from the menu, clicking outside of the menu leaves it open. It works fine on Win98, and I know my code is right. Any suggestions? Thanks.
lumine
July 30th, 2000, 10:51 PM
i think before you popupmenu you must setfocus to menu's owner form
just like these
Private Sub cSysTray1_MouseUp(Button As Integer, Id As Long)
If Button = vbLeftButton Then
Me.SetFocus
PopupMenu mnuTray
End If
End Sub
Hi, all
I am lumine
nice to meet you
TDO
July 31st, 2000, 10:52 AM
Thanks for the info, but in order to set the focus to the form it must be visible, otherwise you get errors. And in this case, I can't have the form visible.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.