471,315 Members | 1,448 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,315 software developers and data experts.

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 1721

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Javier Alpizar | last post: by
4 posts views Thread by John J. Hughes II | last post: by
reply views Thread by genojoe | last post: by
reply views Thread by BillE | last post: by
reply views Thread by =?Utf-8?B?Sm9obiBG?= | last post: by
reply views Thread by rosydwin | last post: by

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.