Assembly assembly = Assembly.GetExecutingAssembly();
// 实例化窗体
//UserControl 可根据窗体或者控件来更改
//as UserContro 强制转换。
UserControl form = assembly.CreateInstance("TernSoftwareForm.UserIndexPage") as UserControl;
Assembly assembly = Assembly.GetExecutingAssembly();
// 实例化窗体
//UserControl 可根据窗体或者控件来更改
//as UserContro 强制转换。
UserControl form = assembly.CreateInstance("TernSoftwareForm.UserIndexPage") as UserControl;