Results 1 to 4 of 4

Thread: Popupmenus

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 1999
    Location
    San Francisco
    Posts
    16

    Post

    I'm using a Popupmenu to bring up the menu on the right click of a mouse. The menu is created in one form and poped up in another form. Now how do I recognise the click event of the popupmenu(its menu is in another form).

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    Why not put the same menu in both forms? It's not visible anyhow, and the menu_Click event in each menu can always be made to execute the same subroutine in a code module.

    ------------------
    Marty

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Dec 1999
    Location
    San Francisco
    Posts
    16

    Post

    I am using the same form(a user control is placed on it) in many places. I can't duplicate the menu in all the places. Is there any other solution???????????????

  4. #4
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    Post

    Let's say Form2 has a menu called mnuHelpMeOut and it has a submenu of mnuMessage and in mnuMessage click event you have a MsgBox "Here is how it works"
    On Form1 you have a command button and in it's click event you put this.

    Form2.Popup mnuMessage

    Hope it helps,
    Wayne


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