VB.NET menu

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mahesh.V

    VB.NET menu

    Hi All
    Am using VB.NET menu object. I have a MDI screen and menu is attached to
    the MDI screen. When I try to open a child window with in the MDI, the Child
    window's menu gets appended to the MDI menu. So now I see two menus in one
    menu bar. Usually in VB and in others when ever a child window is opened the
    menu of the child window will be replaced with the MDI menu and activating
    and deactivating the subsequent windows will hide and show the dependent
    menus. How to do this in VB.NET menu.

    Thanks in advance
    Mahesh.V


  • Peter Proost

    #2
    Re: VB.NET menu

    Hi,

    I think you need to look at a menuitems, MergeType and MergeOrder property

    hth

    Greetz Peter

    --
    Programming today is a race between software engineers striving to build
    bigger and better idiot-proof programs, and the Universe trying to produce
    bigger and better idiots. So far, the Universe is winning.

    "Mahesh.V" <mahesh@ewaksof t.com> schreef in bericht
    news:ePUeXfnZFH A.1404@TK2MSFTN GP09.phx.gbl...[color=blue]
    > Hi All
    > Am using VB.NET menu object. I have a MDI screen and menu is attached[/color]
    to[color=blue]
    > the MDI screen. When I try to open a child window with in the MDI, the[/color]
    Child[color=blue]
    > window's menu gets appended to the MDI menu. So now I see two menus in one
    > menu bar. Usually in VB and in others when ever a child window is opened[/color]
    the[color=blue]
    > menu of the child window will be replaced with the MDI menu and activating
    > and deactivating the subsequent windows will hide and show the dependent
    > menus. How to do this in VB.NET menu.
    >
    > Thanks in advance
    > Mahesh.V
    >
    >[/color]


    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: VB.NET menu

      "Mahesh.V" <mahesh@ewaksof t.com> schrieb:[color=blue]
      > Am using VB.NET menu object. I have a MDI screen and menu is attached
      > to
      > the MDI screen. When I try to open a child window with in the MDI, the
      > Child
      > window's menu gets appended to the MDI menu. So now I see two menus in one
      > menu bar. Usually in VB and in others when ever a child window is opened
      > the
      > menu of the child window will be replaced with the MDI menu and activating
      > and deactivating the subsequent windows will hide and show the dependent
      > menus.[/color]

      You can control the merge behavior by setting the menu items' 'Merge*'
      properties to an appropriate value.

      --
      M S Herfried K. Wagner
      M V P <URL:http://dotnet.mvps.org/>
      V B <URL:http://classicvb.org/petition/>

      Comment

      Working...