Form obj = (Form)GetFormByName.GetFormBy("AutoManagePro.Home.dll", "frmHome");
Type type = obj.GetType();
// 设置窗口属性
System.Reflection.PropertyInfo windowState = type.GetProperty("WindowState");
windowState.SetValue(obj, FormWindowState.Maximized, null);
System.Reflection.PropertyInfo formBorderStyle = type.GetProperty("FormBorderStyle");
formBorderStyle.SetValue(obj, FormBorderStyle.None, null);
System.Reflection.PropertyInfo topLevel = type.GetProperty("TopLevel");
topLevel.SetValue(obj, false, null);
System.Reflection.PropertyInfo dock = type.GetProperty("Dock");
dock.SetValue(obj, DockStyle.Fill, null);
System.Reflection.PropertyInfo tag = type.GetProperty("Tag");
tag.SetValue(obj, "AutoManagePro", null);
System.Reflection.PropertyInfo autoscroll = type.GetProperty("AutoScroll");
autoscroll.SetValue(obj, true, null);
// 将窗体显示到tabcontrol 中
this.spt_Main.Panel2.Controls.Add(obj);