To add what dmitriry is saying...
Use the shared function of LoadFile (or whatever load you want) from
the System.Reflection.Assembly class
Iterate through Assembly.getTypes()
Also, check for the base type on most, because a lot of times you get
RuntimeMethod instead of method. but a runtime methods base type is
Method...
Just a little FYI.
-CJ
"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote in message news:<uQ**************@TK2MSFTNGP10.phx.gbl>...
Hi Ahmet,
You can do that using Reflection. Iterate on all types in the assembly in
question and check each type for having the System.Windows.Forms.Control as
its ascendant.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Ahmet" <ak*********@hotmail.com> wrote in message
news:es**************@TK2MSFTNGP11.phx.gbl...
Hi;
How can I get control list (Controls[]) of a form in a dll dynamically
activated using Activators.CreateInstance.
I need all controls names and attributes of one form which is in one dll.
Is it possible to do this ?
thanks in advance.