Problem with Form Inheritance in VB.NET 
Author Message
 Problem with Form Inheritance in VB.NET

Is there some trick to form inheritance from .EXE files?  I have been able
to base inherited forms on forms saved in assemblies that were compiled as
DLL's, and have been able to base them on forms in Windows applications that
are part of the same solution.  Once I try to use the inheritance picker to
browse to and then select an .EXE, however, I get:

Reference Error
Unable to add reference 'appname' to the current application.  Check that a
different version of 'appname' is not already referenced.

Just about every book I have says that the inheritance picker CAN select
.EXE assemblies.  What am I missing?



Thu, 28 Apr 2005 09:26:56 GMT  
 Problem with Form Inheritance in VB.NET
Hello Joe,

It's currently not possible to reference a .EXE from Visual Studio. The most
common way to do this is to put the base form in a DLL, and then reference
the DLL.

Antoine & Ed
Visual Basic .NET

--
This posting is provided "AS IS" with no warranties, and confers no rights.


Quote:
> Is there some trick to form inheritance from .EXE files?  I have been able
> to base inherited forms on forms saved in assemblies that were compiled as
> DLL's, and have been able to base them on forms in Windows applications
that
> are part of the same solution.  Once I try to use the inheritance picker
to
> browse to and then select an .EXE, however, I get:

> Reference Error
> Unable to add reference 'appname' to the current application.  Check that
a
> different version of 'appname' is not already referenced.

> Just about every book I have says that the inheritance picker CAN select
> .EXE assemblies.  What am I missing?



Sat, 30 Apr 2005 04:59:32 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. VB.NET and Inheritance

2. Inheritance and Override in VB.NET

3. When does inheritance occure in VB.Net

4. constructor and inheritance in VB.NET

5. Subtle bug with VB.NET inheritance

6. Multiple inheritance in vb.net

7. COM classes with inheritance in VB.NET

8. Form inheritance problem

9. Inheritance across VB assemblies: Optional parameter compiler problem

10. I feel stupid -problems showing a second form (Vb.Net)

11. tabbing problems when showing .net form form vb6

12. VB.NET with ASP.NET web forms

 

 
Powered by phpBB® Forum Software