MDI Behaviour

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

    MDI Behaviour

    Hello,
    Usually when I drop some controls at the MDI Parent and later open Mdi
    Child forms, I can see MDI Parent controls on the top of child forms. Is
    there any way that we can display Child forms without displaying MDI
    Parent controls. I know that SetWindowPos can make a child form topmost.
    but It'll be on the top of all other forms too which is not a good
    solution to the problem.
    Any suggestions in this regard will be appreciated.

    TIA

    Maqsood Ahmed [MCP,C#]
    Kolachi Advanced Technologies


    *** Sent via Developersdex http://www.developersdex.com ***
  • Dmytro Lapshyn [MVP]

    #2
    Re: MDI Behaviour

    Hi,

    This article:



    may suggest some valuable ideas for solving your problem. Actually, having
    controls on the MDI parent window is quite uncommon, do you really need
    this?

    --
    Sincerely,
    Dmytro Lapshyn [Visual Developer - Visual C# MVP]


    "Maqsood Ahmed" <maqsood.ahmed@ gmail.com> wrote in message
    news:O68fojqaFH A.612@TK2MSFTNG P12.phx.gbl...[color=blue]
    > Hello,
    > Usually when I drop some controls at the MDI Parent and later open Mdi
    > Child forms, I can see MDI Parent controls on the top of child forms. Is
    > there any way that we can display Child forms without displaying MDI
    > Parent controls. I know that SetWindowPos can make a child form topmost.
    > but It'll be on the top of all other forms too which is not a good
    > solution to the problem.
    > Any suggestions in this regard will be appreciated.
    >
    > TIA
    >
    > Maqsood Ahmed [MCP,C#]
    > Kolachi Advanced Technologies
    > http://www.kolachi.net
    >
    > *** Sent via Developersdex http://www.developersdex.com ***[/color]

    Comment

    • Mark Broadbent

      #3
      Re: MDI Behaviour

      If all you want is to hide them if a child form is open, then probably the
      best workaround to do this would be to create a procedure
      showParentContr ols(bool show)
      and use that to show/ hide them once a child is open or all are closed.

      Obviously you will probably need to keep track of the if there are any
      childs open or not.

      br,

      Mark.

      "Maqsood Ahmed" <maqsood.ahmed@ gmail.com> wrote in message
      news:O68fojqaFH A.612@TK2MSFTNG P12.phx.gbl...[color=blue]
      > Hello,
      > Usually when I drop some controls at the MDI Parent and later open Mdi
      > Child forms, I can see MDI Parent controls on the top of child forms. Is
      > there any way that we can display Child forms without displaying MDI
      > Parent controls. I know that SetWindowPos can make a child form topmost.
      > but It'll be on the top of all other forms too which is not a good
      > solution to the problem.
      > Any suggestions in this regard will be appreciated.
      >
      > TIA
      >
      > Maqsood Ahmed [MCP,C#]
      > Kolachi Advanced Technologies
      > http://www.kolachi.net
      >
      > *** Sent via Developersdex http://www.developersdex.com ***[/color]


      Comment

      Working...