Child from a Child..

  • Thread starter Thread starter VJ
  • Start date Start date
V

VJ

Has anybody had trouble invoking a Child from (form2) another Child (form1)
of a MDI form?.. I am seeing strange behaviour...,(including this one.. see
my earlier thread "MDI form Strange Behaviour.."). Is there anything i
should watch for.. when doing this?... This what happens

1. The child (form2) invoked from the child (form1) does not paint fully...,
there is disconitunity in the window.
2. Happens only for the first time such a second child(form2) is
invoked...from the first child(form1)
3. If comment the .Show() method of the second child (form2), it does not
show, but the MDI's main menu disappears.
4. If run the project from VS.NET debugg mode(F5), and when the line
..MDIParent = Me.MdiParent executes; I get a object reference not set, i.e
saying the child form (form1) does not have MDI parent set. When step
through using a break point to see if there is really no parent, it works,
but again I get the problems outlined in 1,2,3 depending on what I do...

Somebody please help!!!..

VJ
 
Bernie.. got this ... The problem was there was this one Activiate statment
in the parent that was creating a grand child.. The Activate was being
called when the child window was visible, I put a IF around it.. and that
took care of stuff.. Thanks for your help

VJ
 
Hi VJ,

Glad to be of help.

Bernie

VJ said:
Bernie.. got this ... The problem was there was this one Activiate
statment
in the parent that was creating a grand child.. The Activate was being
called when the child window was visible, I put a IF around it.. and that
took care of stuff.. Thanks for your help

VJ
 
Back
Top