Child form problem!!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jarremw
    New Member
    • Jan 2008
    • 50

    Child form problem!!!

    hello all,
    i am trying to set up a mdiparent form with child forms, i have in the load procedure on the parent form settings like this insert.mdiparen t = me for all the child forms and that seems to work,i also have adobe within the program opening up pdfs, now the problem is that when i set the child forms, the adobe no longer works at all, but works when they are not child forms, now why is that? i have looked over the code and cant seem to find anything wrong at all....PLEASE HELP!!!

    thanks
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by jarremw
    hello all,
    i am trying to set up a mdiparent form with child forms, i have in the load procedure on the parent form settings like this insert.mdiparen t = me for all the child forms and that seems to work,i also have adobe within the program opening up pdfs, now the problem is that when i set the child forms, the adobe no longer works at all, but works when they are not child forms, now why is that? i have looked over the code and cant seem to find anything wrong at all....PLEASE HELP!!!

    thanks
    What version of VB are you using?

    I haven't worked much with MDI forms, and that was many years ago. However, I seem to recall that there are lots of things that child forms can't do. And some that the parent can't do. Perhaps you're running into this sort of restriction.

    Keeping in mind that I work with VB6, here's an example of the sort of thing I mean, from the doco...
    An MDIForm object can contain only Menu and PictureBox controls and custom controls that have an Align property. To place other controls on an MDIForm, you can draw a picture box on the form, and then draw other controls inside the picture box. You can use the Print method to display text in a picture box on an MDIForm, but you can't use this method to display text on the MDIForm itself.

    Comment

    • jarremw
      New Member
      • Jan 2008
      • 50

      #3
      im using vb 2005 if that helps at all, thanks for the quick reply

      Comment

      • jarremw
        New Member
        • Jan 2008
        • 50

        #4
        this is driving me nuts, it just will not work if i have the form set as a child form! when its not it will work, by work i mean, the pdf loads into the pdf browser within vb, what the hell is going on here! but when it is a child form, the pdf view just stays blank! is there any alternative to mdi controls to make multi forms act like one? like when a new form is opened, it doesnt create a new item on the windows start bar?

        thanks

        Comment

        • jarremw
          New Member
          • Jan 2008
          • 50

          #5
          ok i got it, i just set up the forms as dialogs so i got the "one form" effect

          Comment

          • Killer42
            Recognized Expert Expert
            • Oct 2006
            • 8429

            #6
            Originally posted by jarremw
            ok i got it, i just set up the forms as dialogs so i got the "one form" effect
            Great! Glad to hear you got it sorted.

            I've been hoping someone else would jump in with some help. I only use VB6, so once you get into the guts of later versions I'm lost.

            Comment

            Working...