If you encounter such a task some time ago, You need to merge two projects into one project, add the form and dataset of Project B to project a, and then open the form of B through Project.
The previous progress was very smooth. When adding a dataset, the system prompts "the typed dataset will not be compiled. Please open the data in the Dataset Designer, check that each tableadapter has been set to a valid connection! ", The code for opening the form in B is not mentioned. At this time, if you compile the form directly, many errors will be displayed, about the failure to find the connection string...
How can this problem be solved?
- Open the properties -- settings. Setting file in Project B, and you will see a connection string in it. Copy all the content in it.
- Open the file of Project A and paste the copied content.
Re-compile, there will still be errors, such as dataset not found ....
Change all the namespaces about Project B to. Compiled ....
Experiences in adding datasets for existing projects