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();
TAG c#
댓글을 달아 주세요