|
-
Feb 16th, 2000, 07:16 AM
#1
Thread Starter
Addicted Member
How To Do a System Tray Icon And Have It Have a Menu on right click ?
-
Feb 16th, 2000, 09:32 AM
#2
Hyperactive Member
First, go here:
http://www.vb-world.net/tips/tip61.html
after you get all that set up, it will put an icon in the tray. Follow the directions.
Then go to the menu editor and create a menu. Set the visible property of the main subject to false (a check box on the menu editor). Then put your menu name in the code below.
Then, put this code in.
Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Select Case ScaleX(X, vbTwips, vbPixels)
Case WM_RBUTTONDOWN 'Show Popup Menu
Me.PopupMenu *YOUR INVISIBLE MENU*
Case WM_LBUTTONDBLCLK 'Show the Form
WindowState = vbNormal
Show
End Select
End Sub
-
Feb 16th, 2000, 09:41 AM
#3
Thread Starter
Addicted Member
-
Feb 16th, 2000, 11:57 AM
#4
Addicted Member
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
|