Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to remove MenuStrip from MDI child
Message
From
18/01/2007 14:35:24
 
 
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01183318
Message ID:
01186785
Views:
19
>Don't know if you've solved you MenuStrip problem yet but

Yes, I solved it. As you may notice in source code I posted there was missing MainMenuStrip assignment in parent form which causes the issue.


>>3. I need to merge Toolstrip buttons also. Will Toolstrip button merging
>>work in the same way as menu merging ? Can I remove child toolstrip by
>>setting its visible propery to false ?
>
>I've just been looking at this. Firstly the automatic merge doesn't work with ToolStrips - you have to use the ToolStripManager.Merge() method. Having said that I can get it working successfully in a simple test scenario but *not* in my actual application - I'm having the same problem with the ToolStrip that you are/were having with the MenuStrip (but my MenuStrips are merging OK).

I used code in mdi child activate event from the forum link I posted to you to merge my Toolstrips.
I havent tested it a lot but my initial tests show that this work OK.

>
>I'll let you know if I solve this - the problems may be related...

My biggest issue is that MenuStrip and ToolStrip merging are not supported in MONO. So in MONO duplicate menus and toolstrips appear.
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform