Click here to Skip to main content
15,847,583 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
Dear All,
I am working on a project and i wanted to include some of my previous works from another project, i included that project by following steps:
VS2005 --> Solution Exp. --> Right click --> Add --> Existing Project.
after doing this when i wanted to use the same project it's form name is not shown in the VS2005 intellisense.

Can any one help me out with this?
Posted
Comments
Sergey Alexandrovich Kryukov 27-Apr-11 21:18pm    
This is not the issue. Can't you see that the described operation is not enough?
--SA
Nischal Bhatt 29-Apr-11 5:41am    
Hey! SA,
i found the solution, thanx for showing your interest in my question...
Sergey Alexandrovich Kryukov 29-Apr-11 10:52am    
And what is it, will you share with us?
However, this is simple, never mind...
--SA

That's because when you want to use the included project in a different project, you have to add a reference to it in the project you want to use it in.
If you have a project called MyProject, in a solution called MySolution, and you have added an existing Project to the solution (called MyOtherProject) then:
In MyProject, right click on "References" and select "Add Reference...".
In the dialog that appears (eventually), select the "Projects" tab.
In the list, select "MyOtherProject" and press "OK".

You may want to add a using MyOtherProject line to the top of each source code file in MyProject as well.
 
Share this answer
 
Comments
markovl 27-Apr-11 5:18am    
Great answer! One small correction though, the question is tagged as VB.NET - so it should be Imports MyOtherProject
OriginalGriff 27-Apr-11 5:23am    
Picky, picky, picky! :laugh:
Sergey Alexandrovich Kryukov 27-Apr-11 21:19pm    
I don't care what VB.NET says, it's my 5.
--SA
Although the project is now included in the solution, you still need to add a reference to the added project in the original project, and you still need to include a using statement in your code files of the original project that need to interact with the added project.

Hope this helps
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 27-Apr-11 21:20pm    
Essentially same (correct) answer as Griff's ~same time, so a 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900