473,758 Members | 5,909 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MergeOrder and MergeType

Hi,

I have a MDI form and an MDI child form both with menus.

The menu bar on the MDI form looks something like this:

MENUA MENUB MENUC MENUD

There is a single menu on the MDI child which I would like to insert in
between MENUB and MENUC on the MDI form.

Can anyone tell me how to achieve this? I've tried looking at the help for
the MergeOrder and MergeType properties - useless. I've also tried playing
around with them - futile.

If you are wondering, as it stands right now, all menu items on both forms
have a MergeOrder of 0 and the MergeType is the default (which I think is
Add).

Thanks in advance,

Andrew
Nov 20 '05 #1
1 1509
Hi,

I figured it out myself.

In case anyone is wondering:

I set the MergeOrder for the menus on the MDI form to 0, 1, 2, 3
respectively. And then set the MergeOrder for the menu on the MDI child to
1. And it works :-)

Andrew

--- Original Message ---

"Andrew McKendrick" <andréwém@cogéc o.ca> wrote in message
news:eA******** ******@TK2MSFTN GP09.phx.gbl...
Hi,

I have a MDI form and an MDI child form both with menus.

The menu bar on the MDI form looks something like this:

MENUA MENUB MENUC MENUD

There is a single menu on the MDI child which I would like to insert in
between MENUB and MENUC on the MDI form.

Can anyone tell me how to achieve this? I've tried looking at the help for
the MergeOrder and MergeType properties - useless. I've also tried playing
around with them - futile.

If you are wondering, as it stands right now, all menu items on both forms
have a MergeOrder of 0 and the MergeType is the default (which I think is
Add).

Thanks in advance,

Andrew

Nov 20 '05 #2

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

Similar topics

3
1783
by: Steven Smith | last post by:
the way I'm undersatnding the MSDN documentation when creating parent and child forms the main menu for the child form should not be displayed on the child form itself but instead be incorporated into the parent forms main menu, however I just cannot make this work, with the parents main menu being displayed at all times, I know this is rather vague but hopefully someone may have encountered a similar problem at sometime and may be able...
2
3233
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...
0
861
by: **Developer** | last post by:
MenuItemPasteSpecial.MenuItems.Clear() jnk = MenuItemPasteSpecial.MenuItems.Add(New MenuItem("Locale", AddressOf HandlesMenuItemPasteSpecial_Click)) 'MenuItemPasteSpecial.MenuItems(jnk).MergeType = MenuMerge.MergeItems 'MenuItemPasteSpecial.MenuItems(jnk).MergeOrder = 0 'MenuItemPasteSpecial.MenuItems(jnk).Visible = True jnk = MenuItemPasteSpecial.MenuItems.Add(New MenuItem("Text", AddressOf HandlesMenuItemPasteSpecial_Click))...
0
854
by: **Developer** | last post by:
Sorry this is the second post but I had left the most important clue out of the first one. If I only have one MenuItem.Add it works OK! MenuItemPasteSpecial.MenuItems.Clear() jnk = MenuItemPasteSpecial.MenuItems.Add(New MenuItem("Locale", AddressOf HandlesMenuItemPasteSpecial_Click)) 'MenuItemPasteSpecial.MenuItems(jnk).MergeType = MenuMerge.MergeItems
2
1615
by: **Developer** | last post by:
I open a form containing a MainMenu thusly: Dim FormTextEditor As New FormChildArtEditorTool FormTextEditor.MdiParent = Me FormTextEditor.Show()
2
1165
by: academic | last post by:
If I look at the code I see Me.Menu = Me.MainMenuFormCaptureTool But if I look at the properties I do not see a property for Menu This is code from VS2003 What should I do to correct this.
12
2210
by: cj | last post by:
I would like to have menu items a main menu bar that represent the days of the week. When you click on them they alternate from checked to unchecked. Right now I have 7 subs that look like this one: Private Sub SunMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SunMenuItem.Click If SunMenuItem.Checked Then SunMenuItem.Checked = False Else SunMenuItem.Checked = True
2
4331
by: Fir5tSight | last post by:
Hi, I'm experimenting sample code created in Visual Studio 2002 (or 2003) in my Visual Studio 2005. However, I can't find the following in VS 2005: - MainMenu control in Toolbox; - MergeOrder property for a menu; - MdiList property for a menu.
3
1387
by: active | last post by:
I have a mainmenu menuitem that contains a Recently Used Files menuitem If at design time I include a menuitem in the Recently Used Files menuitem collection it will display OK If I programmatically add more menuitems to the Recently Used Files menuitem they show ok However, if I clear the Recently Used Files menuitem collection and then add more menuitems they do not display. What is weird is that even though they do not display the...
0
9298
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10072
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9885
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,...
0
9737
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8737
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6562
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();...
0
5329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3829
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
3
2698
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 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...

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.