升级.net紧凑框架版本后的例外情况

时间:2016-03-28 06:01:56

标签: c# visual-studio compact-framework pocketpc

我已经通过visual studio Project-> Upgrade Project .将我的项目从.NET 2.0升级到.NET 3.5 升级后,当我编译项目时,我收到了错误

'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''.

通常在我的项目System.Windows.Forms.dllSystem.Windows.Forms.DataGrid.dll中引用两个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

处获得例外“'this.imgLstSplashScrn = new System.Windows.Forms.ImageList();'

当我尝试在InitializeComponent()电话上处理异常时,我收到异常'ObjectDisposedException was unhandled'

我该如何解决?

0 个答案:

没有答案