CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2000
    Location
    OH - USA
    Posts
    1,892

    Popupmenu Issue?

    I am calling a popupmenu on my main form, I then select a menu item on the popup which in turn loads another form (vbmodal). Now the problem... I have a menu that I want to use on the form that is now showing and when I use the popupmenu command nothing happens. It is error free it just does not show the popupmenu? Now If I go back and load the form with a cmd button the popupmenu works fine, however this will not meet my needs! Any ideas are greatly appreciated!!

    Good Luck,
    Craig - CRG IT Solutions - Microsoft Gold Partner

    -My posts after 08/2015 = .NET 4.x and Visual Studio 2015
    -My posts after 11/2011 = .NET 4.x and Visual Studio 2012
    -My posts after 02/2010 = .NET 4.0 and Visual Studio 2010
    -My posts after 12/2007 = .NET 3.5 and Visual Studio 2008
    -My posts after 04/2007 = .NET 3.0 and Visual Studio 2005
    -My posts before 04/2007 = .NET 1.1/2.0

    *I do not follow all threads, so if you have a secondary question, message me.

  2. #2
    Join Date
    Apr 2001
    Location
    Canada
    Posts
    78

    Re: Popupmenu Issue?

    As I undertand it, you have a menu in the parent form you used for the popup menu which works fine. You get a problem when you try it when a child form is loaded. If you do not have a menu in the child form, the parent's menu will be used, however, if you have a menu in the child form, then, the child's menu will be used. What you need to do is write code in the child form to call the method in the parents form which calls the popup menu. Alternatively, you can have all your menu methods in a module and have the parent form and the childs form call this methods in the module.

    If it is not what you mean, then try posting your code to get a better understanding of what you are doing.

    RF


  3. #3
    Join Date
    Feb 2000
    Location
    OH - USA
    Posts
    1,892

    Found Bug @ Microsoft

    Good Luck,
    Craig - CRG IT Solutions - Microsoft Gold Partner

    -My posts after 08/2015 = .NET 4.x and Visual Studio 2015
    -My posts after 11/2011 = .NET 4.x and Visual Studio 2012
    -My posts after 02/2010 = .NET 4.0 and Visual Studio 2010
    -My posts after 12/2007 = .NET 3.5 and Visual Studio 2008
    -My posts after 04/2007 = .NET 3.0 and Visual Studio 2005
    -My posts before 04/2007 = .NET 1.1/2.0

    *I do not follow all threads, so if you have a secondary question, message me.

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