How can I close a window from 1 to another?
I have two windows, I want to close a window from another?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Selva GanapathyPosted Nov 26, 2014, 11:23 PM
Hi Mike,
Please follow like this
http://www.c-sharpcorner.com/Forums/Thread/276484/winform.aspx
Regards,
Selva Ganapathy K
Michal HabalcikPosted Nov 27, 2014, 1:40 AM
Joginder BangerPosted Nov 26, 2014, 11:44 PM
I am not confirm but you can try this
Make a button Event.
Protected void Button_click()
{
Window1 win= new Window1();
win.close();
}
Manish Kumar ChoudharyPosted Nov 26, 2014, 11:28 PM
Hi Mike Steve,
Go through these links you might got your answer
http://stackoverflow.com/questions/12726448/close-a-windows-form-after-another-form-has-been-opened
http://stackoverflow.com/questions/11133947/how-to-open-second-window-from-first-window-in-wpf