close child form with specified name in windows applicationHiren Soni16yPublished Aug 19, 2010, 12:00 AMUpdated Aug 19, 2010, 10:56 PM3.5k00Reactions×25Blogforeach (Form aForm in this.MdiChildren) { if (aForm.Name == "Form1") { aForm.Close(); break; } }CommentsJoin the conversation! Your thoughts help the community grow.Sign in to leave a commentIt is the same account you read, post and publish with — and you will come straight back to this page.Sign inCreate an account
Join the conversation! Your thoughts help the community grow.