sw2007/06/05 18:53

Dll로 되어 있는 어셈블리를 동적으로 로딩...

System.Reflection.Assembly assm = System.Reflection.Assembly.LoadFile(assmPath.ToString());
Type[] type = assm.GetTypes();           

foreach (Type t in type)
{
                if (t.BaseType.Name.ToString() == "Form")
                {
                    frm = (Form)Activator.CreateInstance(t);
                }
}
           
frm.Show();


Posted by redef
TAG

댓글을 달아 주세요