Form inheritance

  • Thread starter Thread starter cmrchs
  • Start date Start date
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...
 
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...
 
* 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.
 
Back
Top