How can I display a child window's  menu with main window's together?

Posted on 2001-09-06
Last Modified: 2012-05-04
Good everyone
     useing vb I can make popup menu and I want to keep
the main window's menu display still, How can I do?
     If I want to combine them show in main menu bar, How
can I do?

Question by:taa
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3

Expert Comment

ID: 6460132
Add a MDI form to you project(keep the Main popup menu's in this form). Make the Mdi Child property of all other forms in the project true. Now the all forms will shown under the main menu


Expert Comment

ID: 6460222
Just to clarify.
1. Do you want to create pop-up menus as well as regular menu items?
   Basicly you also build the pop-up menu in the menu builder.
   it is very well explaind in this link

2. Do you want to combine the menu items of say form1, form2 and form3 into one general menu with graying for options not selected?

Author Comment

ID: 6460444
To: dekeldate
1, Yes I did pop-up menus. and I read it.
2, My quection is :

For example:
There are two windows, one is the winA that is MDI main window, the other is the winB that is MDI child window.
each form has a menu. as the MSDN wrote, when the winB appeared, its menu would instead of the winA's menu. That is not I want. I hope at this time, both menu could display on main window.
because the menu of winA is member of it, so I can easy write the code and wrap them in one module, that would be better to maintain later.

In my case, the winB's menu is created for pop-up menu, ofcause , I do want to show it in winB and winA either.
and then when I disvisiable it , winA's menu must be disappeared when the winB appeared. and I want not write the code in the winA for winB.

So My queation is:
 How can I display the winB's menu within winA'menu and write code in each module without case the variable scope?


Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.


Author Comment

ID: 6460451
So My queation is:
How can I display the winB's menu within winA'menu and write code in each module without care the variable

Could you give me any advice for this kind of problem?

Expert Comment

ID: 6460523
How about instead of making a seperate menu for winB add if the menu structure to winA.

Then when you do not want to display it(as when winB is not visible) set visible property of the top-node for the winB menu structure to false.

Author Comment

ID: 6460790
That would be ok for merge menu,
but then I will write code in the winA for winB that will
consider the variables scope, is it ?

Accepted Solution

dekeldate earned 100 total points
ID: 6461050
you could make prperties and functions in winB and call these from winA

example in winA
private sub mnu_ForWinB
end sub

Expert Comment

ID: 6468202
Thanks :o)

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
vb6 connector to mongodb 2 160
Hide vba in gp 7 125
converting visio 2010 to powerpoint 2010  - formatting issues 5 118
Collapse and expand table in Word 2010 2 151
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

736 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question