在代码的designer.cs部分,我只是让组合框数据库驱动(它预览数据很好,所以工作)但是当我尝试编译时,它抛出了2个独特的错误:
1) 错误 1 类型名称“mtdDesktopApplicationDataSet”在类型“DesktopApplication.DesktopApplication”中不存在
2) 错误 2 类型名称“mtdDesktopApplicationDataSetTableAdapters”在类型“DesktopApplication.DesktopApplication”中不存在
第一个错误在第一行,另一个错误显示在“mtdDesktopApplicationDataSetTableAdapters”所在的位置(4 行)
所有适当的文件似乎都在那里,但它们只是没有连接对吗?
this.mtdDesktopApplicationDataSet = new DesktopApplication.mtdDesktopApplicationDataSet();
this.tblStudyBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.tblStudyTableAdapter = new DesktopApplication.mtdDesktopApplicationDataSetTableAdapters.tblStudyTableAdapter();
this.tblDeliveryGroupBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.tblDeliveryGroupTableAdapter = new DesktopApplication.mtdDesktopApplicationDataSetTableAdapters.tblDeliveryGroupTableAdapter();
this.tblDeliveryBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.tblDeliveryTableAdapter = new DesktopApplication.mtdDesktopApplicationDataSetTableAdapters.tblDeliveryTableAdapter();
this.tblDeliveryDataSetBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.tblDeliveryDataSetTableAdapter = new DesktopApplication.mtdDesktopApplicationDataSetTableAdapters.tblDeliveryDataSetTableAdapter();
((System.ComponentModel.ISupportInitialize)(this.mtdDesktopApplicationDataSet)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tblStudyBindingSource)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tblDeliveryGroupBindingSource)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tblDeliveryBindingSource)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tblDeliveryDataSetBindingSource)).BeginInit();