Re: How Do I: Add a Form from a control library

Tech-Archive recommends: Fix windows errors by optimizing your registry



Erm, you don't...

Compile your control library (containing SomeFunkyForm) to an assembly.
In your second project, reference that assembly.

You can now either:
a: create an instance of SomeFunkyForm from code (the same as you would if
it was in the current project)
b: (inheritance) create a new inherited form (in the IDE) and select
SomeFunkyForm as a base form

It doesn't appear in the project view because it isn't part of your project
(unless you simply share the source code), and doesn't appear in the toolbox
because it is a form.

Marc


.