Results 1 to 7 of 7

Thread: Help Mdi

  1. #1

    Thread Starter
    Addicted Member dani2's Avatar
    Join Date
    Feb 2005
    Location
    Sibiu.ro
    Posts
    191

    Help Mdi

    I have a form which is a MDI container with controls on it (labels, textboxes, pictureboxes, etc). When a MDI form is opened it appears under these controls. How can I make the MDI on top of everything (except other form with focus of course)

    thank you
    Home is where your Head is

  2. #2

    Thread Starter
    Addicted Member dani2's Avatar
    Join Date
    Feb 2005
    Location
    Sibiu.ro
    Posts
    191

    Re: Help Mdi

    'elp
    Home is where your Head is

  3. #3
    Hyperactive Member Bananafish's Avatar
    Join Date
    Jan 2001
    Posts
    394

    Re: Help Mdi

    I think one of the problems with this question is that MDI containers arent usually used to hold lots of screen furniture (like textboxes, panels etc). Normally you would find that it consists of only of controls such as ToolStrips/bars. Menustrips/bars or statusstrips/bars.

    However. If you declare a Panel on your MDI parent (in the body where the children will appear), and set that panel to dock (top, bottom, left or right), then I believe that children will appear in the non panelled portion of the screen and so will work as you have described. You just need to make sure all your controls are all declared within the panel (or group box, or whatever container you use...)

    Hope this helps

  4. #4

    Thread Starter
    Addicted Member dani2's Avatar
    Join Date
    Feb 2005
    Location
    Sibiu.ro
    Posts
    191

    Re: Help Mdi

    i tried what you suggested and now the MDI child is completely hidden by the panel
    Home is where your Head is

  5. #5
    Hyperactive Member Bananafish's Avatar
    Join Date
    Jan 2001
    Posts
    394

    Re: Help Mdi

    You probably docked it as fill. Remove the dock, make sure it is the size you want (smaller than the main area) and dock to one of the edges (Top, Left, Bottom, Right)

  6. #6

    Thread Starter
    Addicted Member dani2's Avatar
    Join Date
    Feb 2005
    Location
    Sibiu.ro
    Posts
    191

    Re: Help Mdi

    i know what you mean, but i want to be able to move the MDI form allover the container parent, the way you suggested if i dock the panel up or bottom for example, then a MDI will be visible only in remaining surface of the parent.
    Home is where your Head is

  7. #7

    Thread Starter
    Addicted Member dani2's Avatar
    Join Date
    Feb 2005
    Location
    Sibiu.ro
    Posts
    191

    Re: Help Mdi

    well i guess is not possible
    Home is where your Head is

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width