Click here to Skip to main content
15,909,829 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a C# application in WPF and I need to close an opened window from another window ...

How can I do that?

I want to close a form that i opened in modeless mode froma another form .
Posted
Updated 14-Feb-10 6:47am
v3

In what context?

Was the form that you want to close was opened by the form you want to close it from?

Is the form that you want to close a modeless or a modal form?

If you want the right answer the first time, you have to provide a lot more info.
 
Share this answer
 
Create a property in the form you want to close from, and put the reference to the one you want to close.

Now Close the form when required.

But Make sure, that the child form is opened not modal to it.

:cool:
 
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