日期:2014-05-18 浏览次数:20947 次
private void Form1_Load(object sender, EventArgs e) { string strPass = @"E:\MyProgram\TestPro\API\TestLog4Net.exe"; Assembly assebly = Assembly.LoadFrom(strPass); Module module = assebly.ManifestModule; Type[] types = m.GetTypes(); Type tpForm = typeof(Form); foreach (Type type in types) { if (type.IsSubclassOf(tpForm)) { this.textBox1.Text = type.FullName; } } }