|
-
Mar 7th, 2001, 11:20 AM
#1
Thread Starter
Fanatic Member
Hi,
I'm runnung a vb project, a small icon sits on the system tray and when i click it a menu appears. To do so, i've a module and a code in the MouseDown event of the Form1 that goes:
<code>
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If (X + Y ^ 16) = WM_RBUTTONDOWN Then
Form1.PopupMenu mnuPopUp_0 'The menu
End If
End Sub
</code>
Everything works fine, BUT... when i click OUTSIDE the menu, the menu doesn't disappear...!!! I want that if i click on the taskbar, for example, the menu GOES AWAY!
How can i do that? I tried a Form1.refresh but doesn't work as the taskbar is not SCALED in the form...
HEEEEEEEEEEEEEEEEEEEEELPP!!
W.
When your car breaks down,
close all windows and retry 
=> please rate all users posts! <=
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|