Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to remove MenuStrip from MDI child
Message
De
18/01/2007 14:35:24
 
 
À
17/01/2007 11:33:57
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01183318
Message ID:
01186785
Vues:
28
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform