By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,234 Members | 1,850 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,234 IT Pros & Developers. It's quick & easy.

Sharing a form over many projects

P: n/a
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

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"dotnetnewbie" <do**********@discussions.microsoft.com> wrote in message
news:34**********************************@microsof t.com...
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
Nov 21 '05 #2

P: n/a
* =?Utf-8?B?ZG90bmV0bmV3Ymll?= <do**********@discussions.microsoft.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.