Building a UI into discrete components

  • Thread starter Thread starter John Spiegel
  • Start date Start date
J

John Spiegel

Hey all,

How can I use a form that's contained in a different solution than the one
I'm working on currently?

It seems as though I can't build the form's project into a dll because it
has a UI. But, I can't seem to add a reference to an exe in a project. And
I'm having trouble finding how to reference a class that's in a different
solution than the current. This seems like it should be far more
straightforward than I'm making it.

TIA,

John
 
You most certainly can build a form into a DLL. Create a class library, or
a windows user control library, or just an empty project. You will just
needs all the right references (e.g. System.Windows.Forms), then create a
new form, and design away. Then you just compile that into a dll.
 
Thanks, Marina.

I thought that seemed strange that I could exactly reproduce the files.
Looks like (and maybe this is something I once new) you can work on the
project as a Windows form project then before building, open the project's
properties and chang the Output Type (under Common Properties\General) from
Windows application to class library.

Thanks again,

John
 
Back
Top