private void LoadTragetForm(string fileName,string className)
{
try
{
this.targetForm = Assembly.LoadFrom(dllName).CreateInstance(className) as BCM.BaseForm;
this.targetForm.MdiParent = MDIPraent;
this.targetForm.WindowState = FormWindowState.Maximized;
}
catch(System.IO.FileNotFoundException e)
{
MessageBox.Show( "找不到动态联接库:" + e.FileName ,gv.syscap,
MessageBoxButtons.OK,MessageBoxIcon.Error);
return;
}
catch(System.Exception e)
{
MessageBox.Show(e.Message,gv.syscap);
return;
}
}
{
try
{
this.targetForm = Assembly.LoadFrom(dllName).CreateInstance(className) as BCM.BaseForm;
this.targetForm.MdiParent = MDIPraent;
this.targetForm.WindowState = FormWindowState.Maximized;
}
catch(System.IO.FileNotFoundException e)
{
MessageBox.Show( "找不到动态联接库:" + e.FileName ,gv.syscap,
MessageBoxButtons.OK,MessageBoxIcon.Error);
return;
}
catch(System.Exception e)
{
MessageBox.Show(e.Message,gv.syscap);
return;
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货