473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Child from a Child..

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
5 1065
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ahaideb | last post by:
I have a table (relation) in my database: --------------- | parent | child | --------------- | 1 | 2 | | 1 | 3 | | 2 | 4 | | 2 | 5 ...
8
by: CJack | last post by:
hy, I have an mdi application, i create a child form and I want to know when a button is pressed while that child form is loaded. I have this code: private void frmTestBaby_KeyUp(object sender,...
3
by: DavidS | last post by:
Have parent.aspx from which I open Driver.aspx form via button on parent.aspx. When I first open the modal dialog, the driver.aspx Page_Load function is called. After I close the dialog, then...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
5
by: PAUL | last post by:
Hello, I have 2 tables with a relationship set up in the dataset with vb ..net. I add a new record to the parent table then edit an existing child record to have the new parent ID. However when I...
0
by: Scott H. | last post by:
I have an MDI parent form that creates mdi child forms each of which are represented by a tab item. I use a third party control to generate the tabbed MDI child forms. Each tab or MDI child form...
4
by: Richard Lewis Haggard | last post by:
What is the mechanism by which a child window can notify its parent that it has been clicked on? -- Richard Lewis Haggard www.Haggard-And-Associates.com
12
by: Phil | last post by:
I can check for MdiChildren.Length=0, but which event handler should I put this in to detect when a child window is closed? TIA Phil.
4
by: jewel87 | last post by:
Hi everyone! I'm writing some code in C under UNIX, which should give some output like this: PARENT: pid = 10063 CHILD: my pid = 10064 CHILD: my parent's pid = 10063 CHILD: Sleeping... PARENT:...
7
by: dweeti | last post by:
Hi, I am trying to display the child element in the DOM, while hiding the parent using JS and CSS, however I cannot find a way to do this. So for example: <body> <div id="Parent"> <div...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.