Form2:
public Form2(string t)
{
InitializeComponent();
this.Text = t;
}Form1中
private void PreeForm(string strName,string MyFunction)
{
string FormName = "JDS."+strName;
Type MyType = Type.GetType(FormName);
Form MyForm = (Form)Activator.CreateInstance(MyType);
MyForm.MdiParent = this;
MyForm.Show(MyFunction); //????????????
}
调用: PreeForm(Form2(????
///有什么好方法?
public Form2(string t)
{
InitializeComponent();
this.Text = t;
}Form1中
private void PreeForm(string strName,string MyFunction)
{
string FormName = "JDS."+strName;
Type MyType = Type.GetType(FormName);
Form MyForm = (Form)Activator.CreateInstance(MyType);
MyForm.MdiParent = this;
MyForm.Show(MyFunction); //????????????
}
调用: PreeForm(Form2(????
///有什么好方法?
obj.GetType().GetMethod("methodname").Invoke(obj, paramObjects);
但Form2有个string的参数...