Form inheritance

C

cmrchs

Hi,

using form inheritance : how can I inherit from a form that is not part of the same project ?

I tried setting a reference to my other win-app (exe) that contains the base form, but references can only be set to DLL's.

So, how can it be done ?
Thnx

Chris

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
M

M.M Ansari

hi
keep your base form in class library project.. you have to set reference to
system.Windows.Forms dll in class library project.
Then build the class library project and inherits the window form from your
base class library form...
I think it is the only solution..

M.M Ansari


Chris C said:
Hi,

using form inheritance : how can I inherit from a form that is not part of the same project ?

I tried setting a reference to my other win-app (exe) that contains the
base form, but references can only be set to DLL's.
So, how can it be done ?
Thnx

Chris

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP &
ASP.NET resources...
 
H

Herfried K. Wagner [MVP]

* Chris C ([email protected]) scripsit:
using form inheritance : how can I inherit from a form that is not part of the same project ?

I tried setting a reference to my other win-app (exe) that contains the base form, but references can only be set to DLL's.

Add the form to a DLL. Classes defined in DLLs are reusable, Windows
Forms EXE projects not.
 

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

Top