In the designer.cs portion of the code, I simply made the combo boxes database driven (it previewed the data fine, so that works) but when I try to compile, it throws me a 2 unique errors:
1) Error 1 The type name ‘mtdDesktopApplicationDataSet’ does not exist in the type ‘DesktopApplication.DesktopApplication’
2) Error 2 The type name ‘mtdDesktopApplicationDataSetTableAdapters’ does not exist in the type ‘DesktopApplication.DesktopApplication’
The first error is on the first line, the other error shows up wherever ‘mtdDesktopApplicationDataSetTableAdapters’ is (4 lines)
All the appropriate files appear to be there, but they just aren’t hooking up right?
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();
I’m guessing you’re experiencing some issues with namespaces. If this code-behind file resides in the
DesktopApplicationnamespace and you also have aDesktopApplicationclass in theDesktopApplicationnamespace, you will experience the above.(Basically it’s looking at
DesktopApplication.DesktopApplicationwhen it should be looking atDesktopApplicationinstead.)Try cleaning up your namespaces so the above is not true, or escape the namespace hell with the
globalkeyword: