Results 1 to 3 of 3

Thread: Popup Menu won't go away

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    31

    Question

    Hey everyone,

    My application resides in the system tray and displays a popupmenu when you right-click on it. I've noticed for all the rest of the programs I have running down there, if I right-click for their menus and then click outside the menu it dissapears. My apps menu won't go away! You have to choose something before it will. Odd, any ideas how I might put a stop to this?

    Thanks!

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Maybe this more advanced and customizable way to make a popupmenu dissappears if you click outside it.
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    31

    Talking

    eotje, thanks but I would prefer not to use any DLLs or OCXs in my app.

    I got it solved though! Calling "SetForegroundWindow Me.hWnd" right before "PopupMenu mnuWhatever" fixes this problem.

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