VS2008: 2 Projects in One Soltution, sharing UserControls ?
-
Hello, I have a solution file in which I have 2 projects. I have one main project that contains about 15 user controls (each user control is a different "mini software"). Now, I have the other project, and I want to add a user control from the first project in the second one. How can this be done ? In the first project, I see all the user controls from this project. When I open a form from the second project, the user controls are gone from the toolbox. I want them to stay there so I can use them. Hope someone can help. Thanks, Vlad
-
Hello, I have a solution file in which I have 2 projects. I have one main project that contains about 15 user controls (each user control is a different "mini software"). Now, I have the other project, and I want to add a user control from the first project in the second one. How can this be done ? In the first project, I see all the user controls from this project. When I open a form from the second project, the user controls are gone from the toolbox. I want them to stay there so I can use them. Hope someone can help. Thanks, Vlad
Do you have reference to the main project from the second one?
Best wishes, Navaneeth
-
Do you have reference to the main project from the second one?
Best wishes, Navaneeth
-
Do you have reference to the main project from the second one?
Best wishes, Navaneeth
I didn't manage to add it in the toolbox, but that's not a big problem. The main problem is that I can't create a user control from Project1 in Project2. I have user control with the name uUserC. I see the class in Project2 and I do this: uUserC c=new uUserC(); When I do this, I get this error: "Unhalted exception has occurec in your app..... Could not load file or assembly 'Project1.Version=1.0.0.0 ....' or one of its dependencies. An attempt was made to load the program with an incorrect format" What can this be ? Thanks, Vlad