Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to remove MenuStrip from MDI child
Message
De
08/01/2007 15:49:58
 
 
À
08/01/2007 14:14:33
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01183318
Message ID:
01183584
Vues:
30
Hi,

Hmm. I've a similar scenario purely using the IDE and it works as expected (I'm assuming that your 'New' menustripitem is a member of the File menustripitem's .dropdowncollection?)

Are you doing this programatically or using the IDE?

If you leave the child window menu visible does it show the expected hierarchy?
Regards,
Viv

>Thank you.
>
>In my actual application I have
>
>Main form MenuStrip: AllowMerge: True
>
>Main form Menustrip File menu:
>
>MergeAction: MatchOnly
>MergeIndex: -1
>
>
>MDI Child form base class MenuStrip: AllowMerge: true
>
>MDI Child form base class MenuStrip File Menu:
>
>MergeAction: MatchOnly
>MergeIndex: -1
>
>
>MDI Child form base class MenuStrip File Menu New item:
>
>MergeAction: Insert
>MergeIndex: 1
>
>
>When I open child window, child menustrip is not merged Main form.
>
>Any idea what causes this ?
>
>>Hi,
>>
>>Firstly you'll need to set the Visible property of the menustrip in the child form to false - otherwise it will show up even if empty.
>>
>>But that doesn't address the issue of why the 'File' option is not getting merged. You could try setting the MergeAction to 'MatchOnly' in the parent form as well (I'm not sure about this but although Help states that this is the default a reset sets the MergeAction to 'Append')
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform