By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,587 Members | 1,891 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,587 IT Pros & Developers. It's quick & easy.

Child from a Child..

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Hi VJ,

Please check my most recent answer to your first post.

Bernie

"VJ" <vi********@yahoo.com> wrote in message
news:OK**************@TK2MSFTNGP12.phx.gbl...
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

Nov 21 '05 #2

P: n/a
VJ
Berine.. that did not work

VJ

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
Hi VJ,

Please check my most recent answer to your first post.

Bernie

"VJ" <vi********@yahoo.com> wrote in message
news:OK**************@TK2MSFTNGP12.phx.gbl...
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


Nov 21 '05 #3

P: n/a
Hi VJ,

I'm pretty certain it should. Can you show me your code?

Bernie

"VJ" <vi********@yahoo.com> wrote in message
news:eA*************@TK2MSFTNGP11.phx.gbl...
Berine.. that did not work

VJ

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
Hi VJ,

Please check my most recent answer to your first post.

Bernie

"VJ" <vi********@yahoo.com> wrote in message
news:OK**************@TK2MSFTNGP12.phx.gbl...
> 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
>
>



Nov 21 '05 #4

P: n/a
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

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:O4*************@TK2MSFTNGP10.phx.gbl...
Hi VJ,

I'm pretty certain it should. Can you show me your code?

Bernie

"VJ" <vi********@yahoo.com> wrote in message
news:eA*************@TK2MSFTNGP11.phx.gbl...
Berine.. that did not work

VJ

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
Hi VJ,

Please check my most recent answer to your first post.

Bernie

"VJ" <vi********@yahoo.com> wrote in message
news:OK**************@TK2MSFTNGP12.phx.gbl...
> 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
>
>



Nov 21 '05 #5

P: n/a
Hi VJ,

Glad to be of help.

Bernie

"VJ" <vi********@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
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

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:O4*************@TK2MSFTNGP10.phx.gbl...
Hi VJ,

I'm pretty certain it should. Can you show me your code?

Bernie

"VJ" <vi********@yahoo.com> wrote in message
news:eA*************@TK2MSFTNGP11.phx.gbl...
> Berine.. that did not work
>
> VJ
>
> "Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
> news:%2******************@TK2MSFTNGP14.phx.gbl...
>> Hi VJ,
>>
>> Please check my most recent answer to your first post.
>>
>> Bernie
>>
>> "VJ" <vi********@yahoo.com> wrote in message
>> news:OK**************@TK2MSFTNGP12.phx.gbl...
>> > 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
>> >
>> >
>>
>>
>
>



Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.