-
How To Do a System Tray Icon And Have It Have a Menu on right click ?
-
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
-
-