Solved

Separate MDI Child form MainMenus

Posted on 2004-09-27
6
419 Views
Last Modified: 2008-03-10
A WinForms VB.Net question...

How do I keep a Child form's MainMenu items separate (and attached to the Child form) rather than appending them to the Parent Form's MainMenu?
0
Comment
Question by:Sigh_Man
  • 3
  • 3
6 Comments
 
LVL 1

Author Comment

by:Sigh_Man
ID: 12159000
(I realise that this will only be feasible with a non-maximised Child form)
0
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 12159147
You realised correctly ;-),

But you might want to look at the mergetype and mergeorder properties.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsmenuitemclassmergetypetopic.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsmenuitemclassmergeordertopic.asp

These will allow you forinstance, to overrides the mdi parents menu with the child window if the child window is maximized

0
 
LVL 1

Author Comment

by:Sigh_Man
ID: 12159213
Thanks.

But is it possible to have the Child Form containing its own Menu?  The Menu item that I want to keep on the Child Form is relevant to the content of the Child Form only, so I want to keep the menu visible on the Child form rather than it moving up to join the Parent Form menu.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 25

Accepted Solution

by:
RonaldBiemans earned 125 total points
ID: 12159521
No, I don't think that that is possible. It's there by design
0
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 12159532
But you can always fake that by building the menu yourself.
0
 
LVL 1

Author Comment

by:Sigh_Man
ID: 12164308
Thanks mate.    :D
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

759 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now