[RESOLVED] VS2005: How to instantiate Class A in Project A from Project B
I have a multi-project solution. I need to instantiate a class in Project B from within Project A. Can this be done? Or have I structured my project incorrectly? I have always in VB6 lumped everything together. Being new to VB.NET I thought this might be possible.
Re: VS2005: How to instantiate Class A in Project A from Project B
select project A in the solution explorer, right click and select "Add Reference"
when the next screen comes up, click on the projects tab, and you will see project B in the list (so long as they are infact part of the same solution)
once you add the reference, you can create the class from projB in projA. VS will also take care of automatically copying the compiled DLL from projB into the bin folder of projA
Re: VS2005: How to instantiate Class A in Project A from Project B
That appeared to have worked. VB.NET is deep. I can understand the reservation of many programmers to convert.
Many thanks, Klein.
Re: [RESOLVED] VS2005: How to instantiate Class A in Project A from Project B
nah.... once you get into it.. you will never want to open VB6 again.. I know I never do