Click here to Skip to main content
15,897,334 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can i call to the parent form whein the user control is in project and the form is in another project
Posted

1 solution

Calling hosting page method from a user control is not a good approach, in that case you need to pass the form object to the user control. Instead of this you can define a delegate and event in the user control and register that event in the container form. In the event definition you can call the local method. You just need to raise the event from the WPF user control.

mharakeh1 wrote:
Can i call to the parent form whein the user control is in project and the form is in another project


It doesn't make any difference if the control is in same project or in a different project.
 
Share this answer
 
Comments
mharakeh1 24-Jun-10 15:36pm    
Thank Prakash, do you have an exemple explain your idea.

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