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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only