Results 1 to 4 of 4

Thread: MDI Child

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Location
    Chesterfield, UK
    Posts
    162

    MDI Child

    I have an MDI application which uses fixed sized forms.

    I've started to change the forms to sizeable and anchored the controls so they move when the form is resized. If the child form has a menu this jumps onto the parent menu (as it always has done) but all the controls move up the form at runtime and leave a space at the bottom of the child. If I change the form in design mode to cut through the bottom controls i.e. so the form doesn't appear tall enough, it corrects itself at runtime. Is there another workaround as it looks misleading in the designer.
    Beware of programmers who carry screwdrivers.

  2. #2
    PowerPoster
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,070

    Re: MDI Child

    Do you mean that your MenuStrip disappears when its items merge with the mdi parent's MenuStrip? That does not happen when I test it. The items jump to the mdi parent MenuStrip, but they leave a blank MenuStrip behind. The controls do not move up.

    Are you making the MenuStrip invisible when there's no items or something? Or is there a property I'm missing?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Location
    Chesterfield, UK
    Posts
    162

    Re: MDI Child

    Its the mainmenu I'm using as the project was originally written in 2003.

    I've set the form height to 570 and run the app and it appears correct but when I get back into the IDE it changes the form height to 591 and I have to move the controls.
    Beware of programmers who carry screwdrivers.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Location
    Chesterfield, UK
    Posts
    162

    Re: MDI Child

    I think I've cracked it, I had a minimum size on the forn which was set to the form size. If I delete the minimum size or set it nowhere near the form size it doesn't cause a problem.

    Thanks
    Beware of programmers who carry screwdrivers.

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