Let's see the attached zip if you don't understand... the example will clarify itself.
I have two different projects: "Project1" and "Project2". Both projects have a form which uses an UserControl. Both, the Form and the UserControl are common for both projects. If you open project1.vbp and/or project2.vbp you see'll what I mean.
However, if you open the project2.vbp you'll realize that VB raises an error: "Class Project1.UserControl1 of control UserControl11 was not a loaded control class."
The explanation is pretty simple. Form1 has a reference to load the control Project1.UserControl1... but this project's name is Project2, so the usercontrol cannot be found. If I edited the Form1 to load the control Project2.UserControl2, this project2 would start "loading" correctly... but Project1 would start raising a similar error.
Is there any way to fix this?




image).
Reply With Quote