Results 1 to 11 of 11

Thread: mdi child ?

  1. #1

    Thread Starter
    Addicted Member nihar's Avatar
    Join Date
    Jan 2002
    Location
    somewhere between home and office
    Posts
    234

    Question mdi child ?

    hi,

    i have an mdi parent form and have child forms to load on that.

    problem is that the mdi parent has a picture box which i have used to display information so when i load the child forms the picture box is only shown and not the child form.

    i cannot remove the child property as i need it to be in front of the screeen and the mdi child to be disabled when a child form is active.

    also i tried opening the child forms as vbmodal but it says mdi child forms cannot be opened modally.

    pls help.
    ciao,
    Nihar

    VB 6 Enterprise SP5;
    SQL Server 2000

  2. #2
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    The Netherlands
    Posts
    403
    There should be space left open for the child windows. The parent of the child windows is the mdi form, not the picturebox, so they won't appear in that control. It will stay before the child windows.
    There are 10 types of people, those who understand binary and those who don't

    http://merlijn.beyonix.net

  3. #3

    Thread Starter
    Addicted Member nihar's Avatar
    Join Date
    Jan 2002
    Location
    somewhere between home and office
    Posts
    234
    yes but is there a solution to this?

    i have create a background containing information which is displayed to the user when the mdi parent form loads.

    now i need to load child forms at the same time keep the background picturebox in place as hiding it makes it look bad.
    ciao,
    Nihar

    VB 6 Enterprise SP5;
    SQL Server 2000

  4. #4
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    The Netherlands
    Posts
    403
    Paint the info for the users on the mdi-form itself.
    There are 10 types of people, those who understand binary and those who don't

    http://merlijn.beyonix.net

  5. #5
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Angry MDI======SHEMDI! GET STUFFED!

    Why use an MDI form???
    They are only designed for apps like Word, an application that can have many of the same things open...
    I hate MDI forms, they are the bane of my programming carreer!
    You can use vbModal with MDI child forms!!! Hahahaha...U have just found the first problem with using MDI forms... There are many more you will find...

    Why not use a normal for for the background to display info? Just get rid of the MDI form....????

  6. #6
    Swatty
    Guest
    Can you try to change the ZOrder of the childforms on load.

    And place the ZOrder of the picturebox accordingly.

  7. #7

    Thread Starter
    Addicted Member nihar's Avatar
    Join Date
    Jan 2002
    Location
    somewhere between home and office
    Posts
    234
    Swatty tried Zorder. doesnt work.

    Wokawidget i know mdiforms are a bane but theres no way out for me right now.

    XaOz i cant add controls to mdimain without using the picturebox.
    ciao,
    Nihar

    VB 6 Enterprise SP5;
    SQL Server 2000

  8. #8
    Swatty
    Guest
    Did you try different numbers on it ??

    ZOrder I mean.

    I know there must be given a number , don't know if it the top should be 0 or the max number of objects loaded.

  9. #9

    Thread Starter
    Addicted Member nihar's Avatar
    Join Date
    Jan 2002
    Location
    somewhere between home and office
    Posts
    234
    i dont know what u mean by setting the zorder to higher number.

    its a method and not a property. how do i change it?
    ciao,
    Nihar

    VB 6 Enterprise SP5;
    SQL Server 2000

  10. #10
    Swatty
    Guest
    When you load the form.

    form1.show
    form1.ZOrder 0

  11. #11

    Thread Starter
    Addicted Member nihar's Avatar
    Join Date
    Jan 2002
    Location
    somewhere between home and office
    Posts
    234
    neaahh it doesnt work either.
    changed zorder to 0,1,more and also changed zorder of picturebox.
    doesnt work.
    ciao,
    Nihar

    VB 6 Enterprise SP5;
    SQL Server 2000

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