Results 1 to 4 of 4

Thread: How To Do a System Tray Icon And Have It Have a Menu on right click ?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Posts
    219

    Post

    How To Do a System Tray Icon And Have It Have a Menu on right click ?

  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Posts
    305

    Post

    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

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Posts
    219

    Post

    it aint working?

  4. #4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width