DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: MDI Child Form

  1. #1
    Join Date
    Aug 2004

    MDI Child Form

    [Originally posted by Larry Asher]

    When ever opening a child form if there is another form open that is larger it is reduced to the size of the new child form. I can stop this if I place an exit sub in the resize event but, that also prevents the user from resizing the form.

    Here is the scenario: I have a recipe form and when the user selects add ingredient the ingredient form opens but the recipe forms size is reduced to the ingredient form. Both the recipe form and the ingredient form are child forms in the application.

    This is frustrating to me and I imagine it will be to users also. I noticed that Microsoft products do not behave this way, imagine that.

    Any help would be greatly appreciated, thanks.

    Hope you all have a good weekend.

  2. #2
    Join Date
    Aug 2004

    Re:MDI Child Form

    [Originally posted by Ed Ardzinski]

    Larry check the border style property of the forms. It defaults to Resizable, which gives the application discretion as to how to size a child form. I usually set the border style to "fixed-single" so that my design time intentions are carried out.

    You might also get frustrated by the random nature of where the forms come up int he MDI forms client area. You can alter this a couple of ways...change the startup position property of the form to "center owner", or I usually put the following in the form load event:

    Me.Top = 0
    Me.Left = 0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

By using this site, you agree to the Privacy Policy