Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to remove MenuStrip from MDI child
Message
From
08/01/2007 15:49:58
 
 
To
08/01/2007 14:14:33
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01183318
Message ID:
01183584
Views:
20
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')
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform