我已通过 Visual Studio 将项目从 .NET 2.0 升级到 .NET 3.5Project-> Upgrade Project .
升级后,当我编译项目时,出现错误
'The type 'System.Windows.Forms.DataGridTableStyle' exists in both 'c:\Users\VijayVignesh\Desktop\AGMobile4\Dll\Other\System.Windows.Forms.DataGrid.dll' and 'c:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE\System.Windows.Forms.dll''.
通常我的项目中引用了两个 dllSystem.Windows.Forms.dll
and System.Windows.Forms.DataGrid.dll
。所以,我决定删除System.Windows.Forms.DataGrid.dll
从项目中。
当我运行该项目时,
public System.Windows.Forms.ImageList imgLstSplashScrn;
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SplashScreen));
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.picBxCompLogo = new System.Windows.Forms.PictureBox();
this.lblWait = new System.Windows.Forms.Label();
this.imgLstSplashScrn = new System.Windows.Forms.ImageList();
this.SuspendLayout();
}
我得到了例外'Exception was unhandled
' at 'this.imgLstSplashScrn = new System.Windows.Forms.ImageList();'
当我尝试处理异常时InitializeComponent()
打电话,我得到了例外'ObjectDisposedException was unhandled'
.
我该如何解决它?
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)