I would like to get all form names available - not just open ones.
I've seen a number of snippets to do this, and they use Assembly, but Vis. Expr. will not let me do it.
Here is an example I found:
Vis. C# Express will not even let me do the first line: Assembly[] array = AppDomain.CurrentDomain.GetAssemblies()Code://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();
It doesn't have Assembly[] available.
Thanks in advance.



LinkBack URL
About LinkBacks


