Using MenuStrip

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

    #1

    Using MenuStrip

    I am using a MenuStrip on a form and adding a Panel to the same form in the
    program. When the Panel is added the top of the Panel is behind the
    MenuStrip, so the top of the Panel is hidden. How do I make the Panel I have
    added appear below the MenuStrip? Is it something to do with the MenuStrip,
    is it floating?

    Gav


  • Marc Gravell

    #2
    Re: Using MenuStrip

    So call newPanel.BringT oFront() or mainMenu.SendTo Back() after you've
    added the newPanel to the Controls collection.

    Same reasons.

    Marc


    Comment

    • Marc Gravell

      #3
      Re: Using MenuStrip

      For info, another common solution here is to add a panel at
      design-time to represent the remaining client area, and then any
      runtime controls are added to this container panel. This way, your
      runtime code doesn't need to care about any header / footer /
      side-pane information - it just knows that it can do what it likes
      inside the panel it has been allocated.

      Marc


      Comment

      • Gav

        #4
        Re: Using MenuStrip


        "Marc Gravell" <marc.gravell@g mail.comwrote in message
        news:OySvuXuGIH A.4712@TK2MSFTN GP04.phx.gbl...
        For info, another common solution here is to add a panel at design-time to
        represent the remaining client area, and then any runtime controls are
        added to this container panel. This way, your runtime code doesn't need to
        care about any header / footer / side-pane information - it just knows
        that it can do what it likes inside the panel it has been allocated.
        >
        Marc
        >
        Oke doke. Thanks. :o)


        Comment

        Working...