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 NamespaceHowever, 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: