How can I close a window from 1 to another?
I have two windows, I want to close a window from another?
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Selva GanapathyRank #560 · 4.3K reputationPosted Nov 26, 2014, 6:23 PM EST
Hi Mike,
Please follow like this
http://www.c-sharpcorner.com/Forums/Thread/276484/winform.aspx
Regards,
Selva Ganapathy K
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Nov 26, 2014, 6:28 PM EST
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
Joginder BangerRank #360 · 7K reputationPosted Nov 26, 2014, 6:44 PM EST
I am not confirm but you can try this
Make a button Event.
Protected void Button_click()
{
Window1 win= new Window1();
win.close();
}
Michal HabalcikRank #902 · 2.3K reputationPosted Nov 26, 2014, 8:40 PM EST