How to send data to controls which is in MDIParent

  • Thread starter Thread starter Satish
  • Start date Start date
S

Satish

Hi,

I am facing problem with, sending data frm mdi child to mdi parent.

I have search Dropdown in MDI form, depend on selection, or enter
string(its like IE URL functionality) and click search button, i am
displaying Details form with all the details. Their i have Delete
button. When we click on delete button, we have to delete the record
from database and at the same time, i have to delete record from the
drop down.

Here i have one private array list, every time depend on search i am
modifying array list and binding it to the drop down.

I have changed drop down Modifiers to public and tried to access from
the child form. Its not accessing the control. Any one will send how
to solove this problem.

Waiting for replaies.....

Regards
Satish
 
Satish,

Forms are objects, and like objects, if you want to modify the contents
of one from another, the other has to have a reference to the object it
wants to modify. In this case, your child form should have a reference to
the parent MDI form. To do this, you might want to pass a reference to the
parent form in the constructor of the child, which the child will keep for
when it wants to call the parent.

Hope this helps.
 
Back
Top