Standard popup menu behavior

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Steve Coan (coan_AT_comcast-dot-net)
Date: 09/10/04


Date: Fri, 10 Sep 2004 12:50:14 -0500

I'm interested in getting the standard popup menu behavior when using VB's
popupmenu method. As background, I have an app that includes an icon in the
system tray. Right-clicking it brings up a popupmenu with options for the
service. Normal menu behavior is that if you click away from a popup menu
anywhere on the screen or another app, the popup menu takes its cue and
disappears. Not so with VB's popupmenu. It remains up until you click a
menu item. Does anyone know a workaround for this? Perhaps this is
possible by hooking the mouse with a callback, or maybe I shouldn't be using
popupmenu at all, but menu API's?

Thanks,
Steve Coan



Relevant Pages

  • Re: PopupMenu doesnt
    ... Is this a situation where you are showing the modal form from a popup menu? ... One of the charming glitches of PopupMenu. ... Private Declare Function CreatePopupMenu Lib "user32" As Long ... (ByVal hMenu As Long, ByVal wFlags As Long, _ ...
    (microsoft.public.vb.general.discussion)
  • Standard popup menu behavior
    ... I'm interested in getting the standard popup menu behavior when using VB's ... I have an app that includes an icon in the ... system tray. ... Right-clicking it brings up a popupmenu with options for the ...
    (microsoft.public.vb.com)
  • Standard popup menu behavior
    ... I'm interested in getting the standard popup menu behavior when using VB's ... I have an app that includes an icon in the ... system tray. ... Right-clicking it brings up a popupmenu with options for the ...
    (microsoft.public.vb.controls)
  • Standard popup menu behavior
    ... I'm interested in getting the standard popup menu behavior when using VB's ... I have an app that includes an icon in the ... system tray. ... Right-clicking it brings up a popupmenu with options for the ...
    (microsoft.public.vb.winapi.graphics)
  • Re: Standard popup menu behavior
    ... > I'm interested in getting the standard popup menu behavior when using VB's ... > popupmenu method. ... Public Sub PostNullMessage ... 'popping up a menu from a notification icon. ...
    (microsoft.public.vb.com)