473,473 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to prevent automatic menu merge in MDI

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

Nov 20 '05 #1
4 6939
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.Remove or
MenuMerge.Replace for the MenuItem.MergeType. 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********@ntlworld.com> wrote in message
news:%2****************@tk2msftngp13.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

Nov 20 '05 #2
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********@email.msn.com> wrote in message
news:ue**************@TK2MSFTNGP09.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.Remove or
MenuMerge.Replace for the MenuItem.MergeType. 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********@ntlworld.com> wrote in message
news:%2****************@tk2msftngp13.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


Nov 20 '05 #3
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********@ntlworld.com> wrote in message
news:uT**************@tk2msftngp13.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********@email.msn.com> wrote in message news:ue**************@TK2MSFTNGP09.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.Remove or
MenuMerge.Replace for the MenuItem.MergeType. 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********@ntlworld.com> wrote in message
news:%2****************@tk2msftngp13.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



Nov 20 '05 #4
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********@email.msn.com> wrote in message
news:e$**************@TK2MSFTNGP09.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********@ntlworld.com> wrote in message
news:uT**************@tk2msftngp13.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********@email.msn.com> wrote in

message
news:ue**************@TK2MSFTNGP09.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.Remove or
MenuMerge.Replace for the MenuItem.MergeType. 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********@ntlworld.com> wrote in message
news:%2****************@tk2msftngp13.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
>
>
>



Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
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...
1
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...
1
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 ...
2
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...
4
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!!
0
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...
1
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...
0
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...
2
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...
0
marktang
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
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...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
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 ...
0
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.