473,508 Members | 2,091 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MenuStrip merge functionality cannot handle inheritance?

Hi All,

I've run into a problem with the MenuStrip control and any help would be
greatly appreciated!

The problem I've got is that when use a control derived from the MenuStrip
class all MDI merge functionality breaks - each MDI child window is given
it's own menu rather than the mdi parent.

To repeat the problem just create a very simple dummy app that has standard
mdi parent and mdi child. Ensure that both forms have menus and that the mdi
merge functionality works. Then if you create a new class

public class MyMenuStrip : System.Windows.Forms.MenuStrip{}

And replace the MDI parents menu creation from

this.menuStrip1 = new MyMenuStrip();//System.Windows.Forms.MenuStrip();

It breaks all merge functionality!

Just to repeat, any help on this would be greatly appreciated.

-Liam




Jan 9 '06 #1
0 1834

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

Similar topics

0
1444
by: Javier Alpizar | last post by:
Hi, I'm setting the Allowmerge property of both the parent and child menustrip but it doesn't work. I get two different menus instead of merged one when I open a child window. Am I missing...
4
21657
by: John J. Hughes II | last post by:
Could someone explain how to merge the form menu with the mdi container window. The menu strip items on the form window merge but I either end up with a blank blue menu on the form or top list of...
0
2009
by: academic | last post by:
I'm having a problem merging a ContextMenuStrip for a UserControl to the MenuStrip on the form containing the UserControl. I tried the following thinking that it is equivalent to cloning the...
0
2353
by: academic | last post by:
Using ToolStripManager.Merge(ToolStrip,ToolStrip) I've been able to merge a MenuStrip into a MenuStrip but never a ContextMenuStrip into a MenuStrip. From the docs it seems to me I should be...
1
4898
by: ashkash | last post by:
I have an access database which takes information from a user and then uses the mail merge functionality to merge the data into a word document. I have a lot of subforms in the access database which...
0
2955
by: genojoe | last post by:
Included below are four methods and a Friend that can be inserted directly into a form that already contains Button1, Button2, and MenuStrip1. Button1 populates the MainMenu control, button2...
0
1171
by: BillE | last post by:
I have a VB.NET base form with a menustrip, the modifier is 'protected'. Forms derived from the base form using visual inheritance display the menustrip, but the menustrip can't be modified on...
6
34610
by: Luqman | last post by:
How can I dynamically Add menuStrip and its menuItems through code using VB.Net 2005 ? Best Regards, Luqman
0
3193
by: =?Utf-8?B?Sm9obiBG?= | last post by:
Hello all, Is there anyway to stop a child form's minimize,maximize,close and system menu from automatically merging with the MDI parent's menustrip when you click the maximize button on the...
0
7326
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,...
0
7385
jinu1996
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...
1
7046
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
7498
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
5053
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
3195
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
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1558
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 ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.