C
Craig Edmunds via .NET 247
Following on from this discussion
http://www.dotnet247.com/247reference/msgs/29/146830.aspx
i'm having the same problem, the classes that i think should work but are throwing up the "type abstract" error are:
########################################
base class:
########################################
Public MustInherit Class ControlBase
Inherits System.Web.UI.UserControl
End Class
########################################
derived class (all code shown):
########################################
Public Class Control
Inherits ControlBase
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
End Sub
End Class
########################################
If the MustInherit keyword is removed from the base class everything works fine, but this is not the behaviour i want.
Any help will be much appreciated.
http://www.dotnet247.com/247reference/msgs/29/146830.aspx
i'm having the same problem, the classes that i think should work but are throwing up the "type abstract" error are:
########################################
base class:
########################################
Public MustInherit Class ControlBase
Inherits System.Web.UI.UserControl
End Class
########################################
derived class (all code shown):
########################################
Public Class Control
Inherits ControlBase
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
End Sub
End Class
########################################
If the MustInherit keyword is removed from the base class everything works fine, but this is not the behaviour i want.
Any help will be much appreciated.