List<string> elements= new List<string>(); foreach (Form item in Application.OpenForms) elements.Add(item.Name );
//required using System.Collections.Generic; using System.Linq; // somewhere in a method ... List<string> OpenFormNameList = Application.OpenForms.Cast<Form>().Select(f => f.Name).ToList(); </string>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)