Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Code & controls shared between projects

$
0
0

Hi! I have two custom .NET applications where a form in one of them has very similar functionality to a form in the other one.  (The common stuff: the majority of controls in those forms, plus all the code for handling those controls.)  Every time I make a change to that portion of one application, I have to make corresponding changes to the other application.  I would rather have the similar stuff be made available to both projects.  So I created a third project with just the shared stuff, both controls and code.  I made it a DLL project (is that the correct thing to do?).  And I included that DLL into each of the other projects as a resource.  But I don't know how to put the to-be-shared controls onto each application's form, nor how to call the to-be-shared code that I'd compiled into the DLL.

If you know how to accomplish this (shared code & controls between two projects), can you tell me?   I'd really, really appreciate your help.

Thank you!



Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>