Hello,
In an MDI application how can I prevent the CLR automatically merging a
child windows' menu with that of the parent MDI form ?
Thanks for any help
Jon 4 6971
Jon,
I'm not sure if you can prevent the merge itself, however I would expect you
can mask the effect of the merge by using MenuMerge.Remov e or
MenuMerge.Repla ce for the MenuItem.MergeT ype. Of course you could simply not
add a menu to the MDI child then the merge naturally will not occur. Somehow
I do not think this is what you mean ;-)
Which raises two questions:
- Why do you want to prevent it?
- What you are expecting instead?
The reason I ask, there may be 'better' alternatives rather then preventing
the merging.
Hope this helps
Jay
"jon morgan" <jo********@ntl world.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. Hello,
In an MDI application how can I prevent the CLR automatically merging a child windows' menu with that of the parent MDI form ?
Thanks for any help
Jon
Thanks Jay,
I'm implementing various child windows (egPrintPreview ) where the user would
expect to see an approriate menu attached to the child and not the parent.
It just wasn't an issue in VB6 and much as I can see the power of menu merge
I don't see why we shouldn't have the option to "turn it off".
Regards
Jon
"Jay B. Harlow [MVP - Outlook]" <Ja********@ema il.msn.com> wrote in message
news:ue******** ******@TK2MSFTN GP09.phx.gbl... Jon, I'm not sure if you can prevent the merge itself, however I would expect
you can mask the effect of the merge by using MenuMerge.Remov e or MenuMerge.Repla ce for the MenuItem.MergeT ype. Of course you could simply
not add a menu to the MDI child then the merge naturally will not occur.
Somehow I do not think this is what you mean ;-)
Which raises two questions: - Why do you want to prevent it? - What you are expecting instead?
The reason I ask, there may be 'better' alternatives rather then
preventing the merging.
Hope this helps Jay
"jon morgan" <jo********@ntl world.com> wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. .. Hello,
In an MDI application how can I prevent the CLR automatically merging a child windows' menu with that of the parent MDI form ?
Thanks for any help
Jon
Jon, I'm implementing various child windows (egPrintPreview ) where the user
would expect to see an approriate menu attached to the child and not the parent.
Don't make the form a MDI child then.
The Windows Standard is to have a single menu in the MDI Parent. The
framework adheres to this standard. As far as I can tell VB6 also adheres to
this standard. (when working with MDI Forms & MDI children).
In VB6 the only option I see is to replace the MDI parent menu. Where as
VB.NET allows you to merge the menu with the parent, which is significantly
more flexible. The parent has common options, the child has child specific
options. In both cases this menu is displayed as part of the MDI parent.
Have you looked at either using Form.ShowDialog (owner) to show your print
preview window (which prevents the user from going back to the MDI parent)
or use Form.Owner to set the owner of the child to the parent.
Hope this helps
Jay
"jon morgan" <jo********@ntl world.com> wrote in message
news:uT******** ******@tk2msftn gp13.phx.gbl... Thanks Jay,
I'm implementing various child windows (egPrintPreview ) where the user
would expect to see an approriate menu attached to the child and not the parent. It just wasn't an issue in VB6 and much as I can see the power of menu
merge I don't see why we shouldn't have the option to "turn it off".
Regards
Jon
"Jay B. Harlow [MVP - Outlook]" <Ja********@ema il.msn.com> wrote in
message news:ue******** ******@TK2MSFTN GP09.phx.gbl... Jon, I'm not sure if you can prevent the merge itself, however I would expect you can mask the effect of the merge by using MenuMerge.Remov e or MenuMerge.Repla ce for the MenuItem.MergeT ype. Of course you could simply not add a menu to the MDI child then the merge naturally will not occur. Somehow I do not think this is what you mean ;-)
Which raises two questions: - Why do you want to prevent it? - What you are expecting instead?
The reason I ask, there may be 'better' alternatives rather then preventing the merging.
Hope this helps Jay
"jon morgan" <jo********@ntl world.com> wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. .. Hello,
In an MDI application how can I prevent the CLR automatically merging
a child windows' menu with that of the parent MDI form ?
Thanks for any help
Jon
Thanks Jay,
You are quite correct of course - my Vb6 forms weren't MDI and Form.Owner
should do the trick. Thanks for setting me straight.
Regards
Jon
"Jay B. Harlow [MVP - Outlook]" <Ja********@ema il.msn.com> wrote in message
news:e$******** ******@TK2MSFTN GP09.phx.gbl... Jon, I'm implementing various child windows (egPrintPreview ) where the user would expect to see an approriate menu attached to the child and not the
parent. Don't make the form a MDI child then.
The Windows Standard is to have a single menu in the MDI Parent. The framework adheres to this standard. As far as I can tell VB6 also adheres
to this standard. (when working with MDI Forms & MDI children).
In VB6 the only option I see is to replace the MDI parent menu. Where as VB.NET allows you to merge the menu with the parent, which is
significantly more flexible. The parent has common options, the child has child specific options. In both cases this menu is displayed as part of the MDI parent.
Have you looked at either using Form.ShowDialog (owner) to show your print preview window (which prevents the user from going back to the MDI parent) or use Form.Owner to set the owner of the child to the parent.
Hope this helps Jay
"jon morgan" <jo********@ntl world.com> wrote in message news:uT******** ******@tk2msftn gp13.phx.gbl... Thanks Jay,
I'm implementing various child windows (egPrintPreview ) where the user would expect to see an approriate menu attached to the child and not the
parent. It just wasn't an issue in VB6 and much as I can see the power of menu merge I don't see why we shouldn't have the option to "turn it off".
Regards
Jon
"Jay B. Harlow [MVP - Outlook]" <Ja********@ema il.msn.com> wrote in message news:ue******** ******@TK2MSFTN GP09.phx.gbl... Jon, I'm not sure if you can prevent the merge itself, however I would
expect you can mask the effect of the merge by using MenuMerge.Remov e or MenuMerge.Repla ce for the MenuItem.MergeT ype. Of course you could
simply not add a menu to the MDI child then the merge naturally will not occur. Somehow I do not think this is what you mean ;-)
Which raises two questions: - Why do you want to prevent it? - What you are expecting instead?
The reason I ask, there may be 'better' alternatives rather then preventing the merging.
Hope this helps Jay
"jon morgan" <jo********@ntl world.com> wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. .. > Hello, > > In an MDI application how can I prevent the CLR automatically
merging a > child windows' menu with that of the parent MDI form ? > > Thanks for any help > > Jon > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jim H |
last post by:
I would like to have some MenuItems that are specific to my child form
appear in the main menu.
In the MSDN documentation:
Menu merging is typically done to merge the menus of a Multiple Document
Interface (MDI) parent form with those of its active MDI child form. This is
performed automatically by the .NET Framework common language runtime. For
example, if an MDI parent form contains a set of menus for handling files
and your MDI child...
|
by: Jeff Brown aka BrntPhish |
last post by:
Can someone explain what the properties for merging menus are and how they
work.
I have a MDI Parent form with file, edit ...etc etc
I also have a MDI Child Form with file edit & a menu that is not on the
Parent.
What i am wanting is for the Child File Menu to append to the Parent File
Menu and same with the edit ... but i wish to add a Child Menu which is not
|
by: SStory |
last post by:
I don't know what happened but a menu that used to merge well no longer does
I have an MDI form
The main MDI form has the main menu.
In it is for example, Schedule menu with item Tasks
Schedule name is mnuSchedule, set to MergeItems, 5
Tasks item name is mnuScheduleJobs, set to MergeItems, 0
|
by: SamSpade |
last post by:
I use to get popup events when I checked out the menu coding.
That was a while ago. Something I did in the interim must have suppressed
those events because I just noticed I don't get them any more.
What could I do that will cause menu item Popup events not to be raised?
I've been looking but really don't know where to look anymore.
Second question.
A control has a context menu.
|
by: Brian Mitchell |
last post by:
How do I keep my MDI children from merging their menus with the parent? I
want both the parent and child to have their own menus bars.
Thanks!!
| |
by: Shrage H. Smilowitz |
last post by:
Hi,
I have created a setup project in vs.net, i have included several merge
modules, but when i test the installation on my development machine i dont
want the uninstall to remove the files that are included in the merge
modules, because it remove the files necossary to for development. How can i
prevent the uninstall from removing that files. I know that normal project
files i can set the permanent property to true and will not be...
|
by: Ellis Yu |
last post by:
Dear all,
Anyone knows how to put the child form's menu items before mdi
form's menu item? In my case, I've a mdi form with menu items "windows" and
"system". In child forms, I've menu items "Action". I'm using the merge
option "Add" now. As the result, I found the menu items order becoming
"windows", "system", "action" and I wanted to put the "action" item before
"windows" and "system. Please help. Thanks
Best Rdgs
|
by: Bernie Yaeger |
last post by:
When I add a main menu to a child form in an mdi app, and use this code, the
menu does not merge (I do not want it to merge with the parent's menu):
Dim i As Integer
For i = 0 To MainMenu1.MenuItems.Count - 1
MainMenu1.MenuItems(i).MergeType = MenuMerge.Remove
Next
|
by: Mahesh.V |
last post by:
Hi All
Am using VB.NET menu object. I have a MDI screen and menu is attached to
the MDI screen. When I try to open a child window with in the MDI, the Child
window's menu gets appended to the MDI menu. So now I see two menus in one
menu bar. Usually in VB and in others when ever a child window is opened the
menu of the child window will be replaced with the MDI menu and activating
and deactivating the subsequent windows will hide and show...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |