Sending Data between 2 MDI child

  • Thread starter Thread starter Francois Soucy
  • Start date Start date
F

Francois Soucy

Hi all,

I've a MDI app. I need to send data from one MDI child to another
MDI child. How Does the hell this can be do??? The receving mdi child is not
always active...

Francois
 
Francois Soucy said:
I've a MDI app. I need to send data from one MDI child to
another
MDI child. How Does the hell this can be do??? The receving mdi child
is not always active...

It depends on the application design. How many instances of each child type
are possible (zero, multiple, always one)? On which action are the child
windows shown (from another child? from the MDI container)?
 
Hi Francois,

One Simple way I can think of is to have a reference to each other and send
data by calling appropriate methods.

Another way is to have the parent maintain a reference to the Child to which
you want to send data and expose this as a public read only property on the
parent. The child that needs to send data can use this property to send data
to the required child.

If you can be more explicit, more specific help can be provided.

Regards

Narayan
 
Thanks to all but to resolve my situation i've put a copy of all proprity on
the Parent form. When a Child form load, he read all of theses. Mayby it's
not the best programming solution, but it's the that permit me to continu!

Francois
 
Back
Top