Sharing a form over many projects

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a vb.net form (built specifically for one project) that now needs to
be shared over many projects. What should I do with this form so that I can
have other projects displaying it when needed (And maintain it easily) ?

Thanks
 
dotnetnewbie said:
I have a vb.net form (built specifically for one project) that now needs to
be shared over many projects. What should I do with this form so that I can
have other projects displaying it when needed (And maintain it easily) ?

Add it to a DLL (Class Library), and then compile it. Then, to use it from
another project, just add a reference to the DLL.

HTH,
Jeremy
 
* =?Utf-8?B?ZG90bmV0bmV3Ymll?= said:
I have a vb.net form (built specifically for one project) that now needs to
be shared over many projects. What should I do with this form so that I can
have other projects displaying it when needed (And maintain it easily) ?

There are two solutions:

Create a class library that contains the form and reference this library
from your other projects using this form.

- or -

Click "Add Existing Item...", select the file, and then change the
dropdown button to reference the file only and keep it in its original
location.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top