Solved

Separate MDI Child form MainMenus

Posted on 2004-09-27
6
423 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

856 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