Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Merge MenuStrip in MDI form

Merge MenuStrip in MDI form

Scheduled Pinned Locked Moved C#
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    baranils
    wrote on last edited by
    #1

    Hello I'm trying to merge a main menu strip and a childs menu strip but I can't get the expected result 1- I have a Main form mdiMain and a child fomr mdiChild 2- mdiMain contains mnuMain, mdiChild contains mnuChild 3- Both mnu have a File item : New; Open; and exit for main,, Save, Save As, Import for child 4- both mnu have allowmerge to true 5- I set the merge option of the Main file item to insert 6- I also set the merge option of the Child file item to insert 7 So I expect a result like New Open Exit Save Save as Import BUT I only get the Main File Menu New Open Exit Do someone knws how to do it Thanks very much for any help

    L 1 Reply Last reply
    0
    • B baranils

      Hello I'm trying to merge a main menu strip and a childs menu strip but I can't get the expected result 1- I have a Main form mdiMain and a child fomr mdiChild 2- mdiMain contains mnuMain, mdiChild contains mnuChild 3- Both mnu have a File item : New; Open; and exit for main,, Save, Save As, Import for child 4- both mnu have allowmerge to true 5- I set the merge option of the Main file item to insert 6- I also set the merge option of the Child file item to insert 7 So I expect a result like New Open Exit Save Save as Import BUT I only get the Main File Menu New Open Exit Do someone knws how to do it Thanks very much for any help

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Does it help if you alter the MergeOption to Append? Or could it be that the constructor isn't creating the mnuChild-component?

      I are troll :)

      modified on Sunday, April 5, 2009 12:07 PM

      B 1 Reply Last reply
      0
      • L Lost User

        Does it help if you alter the MergeOption to Append? Or could it be that the constructor isn't creating the mnuChild-component?

        I are troll :)

        modified on Sunday, April 5, 2009 12:07 PM

        B Offline
        B Offline
        baranils
        wrote on last edited by
        #3

        Thank you No, it does not change anything BUT I have the solution It is necesary to set the head item (File in this case) to MatchOnly Then set each items in the child menu to the needed value (Insert, append...) A little bit tedious is the need to set the Exit item in the Main menu at the end To do that it is necessary to sell all items in the child menu to Insert with the proper index

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups