Click to See Complete Forum and Search --> : Popupmenu Issue?


Craig Gemmill
September 25th, 2001, 11:56 AM
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!!

Raptors Fan
September 25th, 2001, 12:51 PM
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

Craig Gemmill
September 26th, 2001, 09:11 AM
http://support.microsoft.com/support/kb/articles/Q167/8/39.asp