close child form with specified name in windows application

 foreach (Form aForm in this.MdiChildren)
            {
                 if (aForm.Name == "Form1")
                 {
                     aForm.Close();
                     break;
                 }
             }
Ebook Download
View all
Learn
View all