Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PopUpMenu Question, GetSetting Question

Status
Not open for further replies.

Mattheww

Programmer
Jan 17, 2004
3
CL
2 Questions:
I created a menu that pops up on a right click on a system tray icon. It works when it gets clicked, but if the user doesn't click on any of the menu options and moves
the mouse away, the menu still remains open and visible. even when I click on other things it stays there and doesn't leave. How do I get rid of it? I have it set to
Enabled=False and Visible=True

Also, I am using GetSetting and SaveSetting to retreive and store a password in the registry to be used in my program, but it is not retrieveing correctly. Anybody
else experience anything like this or know why it might be?

Thanks!
 
Hi Matthew,

I've done several popmenus but never encountered such problem could you post your code and the other one too.

Pete
 
Public Sub Trayicon_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim Command As Long
Command = (X And &HFF) * &H100
Select Case Command
Case 0 'mouse moves
Case &HF00 'left mouse button down
Case &H1E00 'left mouse button up
Case &H3C00 'right mouse button down
PopupMenu OptionsMenu 'show the popup menu
Case &H2D00 'left mouse button double click
Case &H4B00 'right mouse button up
Case &H5A00 'right mouse button double click
End Select
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top