Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code work in VB.NET application but not in DLL
Message
From
22/12/2005 13:58:55
 
 
To
All
General information
Forum:
ASP.NET
Category:
Class design
Title:
Code work in VB.NET application but not in DLL
Miscellaneous
Thread ID:
01080281
Message ID:
01080281
Views:
54
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
Reply
Map
View

Click here to load this message in the networking platform