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 Child to Mdi Parent controls z-order

MDI Child to Mdi Parent controls z-order

Scheduled Pinned Locked Moved C#
dockerquestion
2 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.
  • S Offline
    S Offline
    Stevo Z
    wrote on last edited by
    #1

    Hi, There is a form thas is mdi container. That form also contains one button. When a MdiChild is displayd, I can see gray MdiClient area, button and Mdi Child form too. But the button is above the Mdi Child form when they intersect. I'd like to switch the order and when the Mdi Child form comes above the button, the button will be behind the child form instead of in front of like default. any ideas? thanx

    zilo

    L 1 Reply Last reply
    0
    • S Stevo Z

      Hi, There is a form thas is mdi container. That form also contains one button. When a MdiChild is displayd, I can see gray MdiClient area, button and Mdi Child form too. But the button is above the Mdi Child form when they intersect. I'd like to switch the order and when the Mdi Child form comes above the button, the button will be behind the child form instead of in front of like default. any ideas? thanx

      zilo

      L Offline
      L Offline
      Luis Alonso Ramos
      wrote on last edited by
      #2

      You'll have to do it manually. If one of the MDI children is "above" the button, hide the button. You could also try adding the button to the MdiClient window and not to your MDI container (your main form). It's a little tricky, but you can get a reference to the MdiClient window (the grey area that hold the MDI children). These two articles talk about MdiClient and how to get a reference to it: http://www.codeproject.com/KB/dialog/mdiclientcontroller.aspx[^] http://www.codeproject.com/KB/cs/mdiclientrevisited.aspx[^]

      Luis Alonso Ramos Intelectix Chihuahua, Mexico

      My Blog!

      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