Solved

Separate MDI Child form MainMenus

Posted on 2004-09-27
6
425 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…

713 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