Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Separate MDI Child form MainMenus

Posted on 2004-09-27
6
Medium Priority
?
433 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
Technology Partners: 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 500 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

Technology Partners: 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!

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
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…
Loops Section Overview
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

783 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