Code Block
private void button1_Click(object sender, EventArgs e)
{
Assembly[] array = AppDomain.CurrentDomain.GetAssemblies();
foreach (Assembly a in array)
{
this.treeView1.Nodes.Add(a.GetName().Name, a.GetName().Name);
Type[] types = a.GetTypes();
foreach (Type t in types)
{
if (t.IsPublic && t.BaseType == typeof(Form))
this.treeView1.Nodes[a.GetName().Name].Nodes.Add(t.FullName);
}
}
treeView1.ExpandAll();
}