Work with multiple projects
I have a question regarding the "integration" of different projects:
Firstly I would like to know if the beta2 version of visual basic express exports the
forms in a way I can then use their design in other projects. I tried the wizard but doesn't seem to work.
Basically what I need is import a form, previously designed in a project, in another project. I tried adding the project, that works although I don't know how to refer to the forms in the added project.
If I use:
It doesn't work as I cannot see the forms in the added project so I cannot refer to them.
Thanks
Leo
[848 byte] By [
Leo13] at [2007-12-16]
To use the classes you create in other projects you need to compile then into a library, i.e. a DLL. You can then add a reference to that library to any other project. Every .NET Framework you use is in a library. If you select "Show All Files" for a project in the Solution Explorer you will see a list of references. Each of those references is a DLL, and you can add your DLLs to that list.
VB Express 2005 beta 2 supports solutions, which is a way of grouping related projects together. Projects in a solution automatically have a reference to any library projects within that same solution.