CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Location
    Srilanka
    Posts
    25

    How to act on to a System tray icon application.

    How can I create a popup menu when I click on the system tray icon of my application.Also how to respond to those clicks I have done. How will the events be handled.

    Amendra


  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: How to act on to a System tray icon application.

    >How can I create a popup menu when I click on the system
    >tray icon of my application

    The same way you create a pop-up menu for other uses :

    - Create a menu on your form using the menu-editor in VB
    - declare the top-most menu item as non-visible


    - In AndyK's code for left/right mouse-button-up :

    PopupMenu YourMenuName



    >How will the events be handled

    In the menu_click event for each menu ite.



    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

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

Featured