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. Mdi Form

Mdi Form

Scheduled Pinned Locked Moved C#
helpdockertutorialquestion
3 Posts 3 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.
  • J Offline
    J Offline
    jojoba20
    wrote on last edited by
    #1

    In a container form I have menu and buttons to open their forms.

    Here I am facing a problem when I open any form these buttons and lables come over newly opened form.

    Please guide me how I can manage this issue? I want to open a new form and keep these container form's controls in back ground of it.

    T D 2 Replies Last reply
    0
    • J jojoba20

      In a container form I have menu and buttons to open their forms.

      Here I am facing a problem when I open any form these buttons and lables come over newly opened form.

      Please guide me how I can manage this issue? I want to open a new form and keep these container form's controls in back ground of it.

      T Offline
      T Offline
      tgurlevik
      wrote on last edited by
      #2

      this article may help you.

      1 Reply Last reply
      0
      • J jojoba20

        In a container form I have menu and buttons to open their forms.

        Here I am facing a problem when I open any form these buttons and lables come over newly opened form.

        Please guide me how I can manage this issue? I want to open a new form and keep these container form's controls in back ground of it.

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        This happens because you put controls in the client area of the MdiParent form (the darker area of the form). You cannot do that unless you either want those controls to be over the top of all of your MdiChild forms or you have to resize the MdiClient control that's on the MdiParent form. The problem is, you can't do that are designtime. It has to be done as runtime. You have to iterate through the MdiParent forms Controls collection, looking for a control of Type MdiClient, then you can set its Dock property to False and resize it to what you need to make room for your controls, and lastly set it the Anchor property appropriately to maintain that layout.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak

        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