
MDI Forms Child getting parent Info
Quote:
> I have an MDI form and need to get some information that I set on the
> parent form.
> psudo code
> login to application
> set userid and password and put them on MDI parent
> launch MDI form
> launch childform
> How do I find the parent form and get information from it?
I don't know if that is the right english word, but free translated
"transmission" is that you need....
code:
class mother {
private privar;
protected provar;
// more variables
Quote:
}
class son : mother {
// here all protected variables of mother will be accessable too.
but
only to the son-classes of mother. the : mother in the class decleration
is
that it's a child class of mother.
//son variable declerations
Quote:
}
class sth : son {
//this is the child class of son. so mother is the grandmother of
this class ;) ... in
CSharp you can't access the protected variables of
mother here, in C++ you can. CSharp you can only "transmiss" one level...
but you are able to access the protected variables of son...
//sth variable declerations
Quote:
}