find forms in dll

  • Thread starter Thread starter MAF
  • Start date Start date
M

MAF

Is there any way to look into a compiled dll and find the forms associated
and then locate properties of the form?
 
System.Reflection.Assembly assembly = //Load Assembly..;
foreach(System.Type type in assembly.GetTypes())
{
if(typeof(System.Windows.Forms.Form).IsAssignableFrom(type))
// or
// if(type.IsSubclassOf(typeof(System.Windows.Forms.Form))
{
//Is a Form
//Use reflection to get the properties you need.
}
}

HTH
Erick Sgarbi
www.blog.csharpbox.com
 
Ok that worked thanks, but I am notable to access the localizeable
property. Do I need to read in the resx file in order to access this
file?
 
Correction... you don't need to read the "file" itself but rather use
the resource manager to read your embedded resource from the assembly.
Look at the link I sent you previously.

HTH
Erick Sgarbi
www.blog.csharpbox.com
 
Back
Top