I need to get all the forms inside my c# application and add the .Text parameter for each one to a combobox control and i need to do all in one method (void)
myCode:
System.Reflection.Assembly[] assembly = AppDomain.CurrentDomain.GetAssemblies();
foreach(System.Reflection.Assembly asem in assembly)
{
foreach(Type t in asem.GetTypes())
{
ComboBox1.Items.Add(t.Name);
//here i need to get the .Text param
//where Name is the Form name
}
}