Get all forms contained in another project

  • Thread starter Thread starter Roman
  • Start date Start date
R

Roman

By mistake I tried to ask this question in dotnet.framework.adonet
but this one seems more appropriate.
Is there a way to get a list of all forms contained in another
solution/project?

Thanks in advance,
Roman
 
Roman said:
By mistake I tried to ask this question in dotnet.framework.adonet
but this one seems more appropriate.
Is there a way to get a list of all forms contained in another
solution/project?

Thanks in advance,
Roman

From where? An add-in? A separate application? Macro? Some of those ways
are easy, while others take a little more work :)

Just let us know more info first.

Mythran
 
Hi Mythran,
Thanks for quick reply.
I am creating an application that manages tool tip text for controls
contained in a separate
application. The user needs to be able to point to another application or
..exe file
to bring in the names of all forms and controls from that application.

Thanks again,
Roman
 
Roman said:
Hi Mythran,
Thanks for quick reply.
I am creating an application that manages tool tip text for controls
contained in a separate
application. The user needs to be able to point to another application or
.exe file
to bring in the names of all forms and controls from that application.

Thanks again,
Roman


If i understand you correctly, then what you need is to use reflection to
load the assembly (assuming the destination assembly is a .Net assembly) and
then get the list of types inside the assembly. The data types contained
within the assembly can be detected to see if they derive from "Form".

HTH,
Mythran
 
Thank you very much, Mythran. That was right on target!
Your suggestions allowed me to extract form names from an assembly.
I also was able to read control names from each form.

Best regards,
Roman
 
Back
Top