Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code work in VB.NET application but not in DLL
Message
De
22/12/2005 13:58:55
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Titre:
Code work in VB.NET application but not in DLL
Divers
Thread ID:
01080281
Message ID:
01080281
Vues:
55
The following code works well in a VB.NET application:
Namespace My

    Partial Class MyApplication

        Inherits Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase

        Private Sub App_Startup(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles Me.Startup
            Framework.App.Initialize()
            MessageBox.Show("Initialize")
        End Sub

    End Class

End Namespace
However, I need to put that code in a DLL, which is a custom framework. But, this is not accepted because I obtain the following message at design time:

Base class 'Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase' specified for class 'MyApplication' cannot be different from the base class 'Microsoft.VisualBasic.ApplicationServices.ApplicationBase' of one of its other partial types.

It is the same code. So, why this doesn't work in the DLL?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Répondre
Fil
Voir

Click here to load this message in the networking platform