Click here to Skip to main content
15,906,574 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
1)what are the ways to pass a value from parent form to child form like constructors,parameters.

2)How can we pass the value from parent from to child form ,to get the results into child form based on parent form value with sample application.
Posted
Comments
Ankit Rajput 26-Apr-11 2:26am    
Same type is already asked few days back.
Please check the questions once

There is not "parent" and "child" form relationship, there is "Owner" and "Owned" forms. You really need to use this relationship if you need application integrity.

As to passing and data and any cooperation between forms, this relatioship just does not matter. It could be any forms of the same assembly.

I insist on using "my" most robust method based on some interface implemented on one of the form. Please see below. There are few different approached. You can find it all in this discussion:

How to copy all the items between listboxes in two forms[^].

—SA
 
Share this answer
 
Check this.

Passing Data Between Forms[^]

For more info here[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900