G
Guest
H
I wonder can anyone answer - can I create a form which is an abstract class i.e. has the MustInherits keyword in the class definitio
When I do this I get the error message
'New' cannot be used on a class that is declared 'MustInherit'
This happens before I have put any other code on the system, all I have done is entered the MustInherits keyword - this is all the code in the form
Public MustInherit Class Form
Inherits System.Windows.Forms.For
#Region " Windows Form Designer generated code
Public Sub New(
MyBase.New(
'This call is required by the Windows Form Designer
InitializeComponent(
'Add any initialization after the InitializeComponent() cal
End Su
'Form overrides dispose to clean up the component list
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean
If disposing The
If Not (components Is Nothing) The
components.Dispose(
End I
End I
MyBase.Dispose(disposing
End Su
'Required by the Windows Form Designe
Private components As System.ComponentModel.IContaine
'NOTE: The following procedure is required by the Windows Form Designe
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent(
components = New System.ComponentModel.Containe
Me.Text = "Form1
End Su
#End Regio
End Clas
I have another form which has more properties and methods etc and I get a similary message
'New' cannot be used on class 'FormTemplates.frmStandardDataEntry' because it contains a 'MustOverride' member that has not been overridden
Any help is greatly appreciated
Thank
Siobha
I wonder can anyone answer - can I create a form which is an abstract class i.e. has the MustInherits keyword in the class definitio
When I do this I get the error message
'New' cannot be used on a class that is declared 'MustInherit'
This happens before I have put any other code on the system, all I have done is entered the MustInherits keyword - this is all the code in the form
Public MustInherit Class Form
Inherits System.Windows.Forms.For
#Region " Windows Form Designer generated code
Public Sub New(
MyBase.New(
'This call is required by the Windows Form Designer
InitializeComponent(
'Add any initialization after the InitializeComponent() cal
End Su
'Form overrides dispose to clean up the component list
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean
If disposing The
If Not (components Is Nothing) The
components.Dispose(
End I
End I
MyBase.Dispose(disposing
End Su
'Required by the Windows Form Designe
Private components As System.ComponentModel.IContaine
'NOTE: The following procedure is required by the Windows Form Designe
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent(
components = New System.ComponentModel.Containe
Me.Text = "Form1
End Su
#End Regio
End Clas
I have another form which has more properties and methods etc and I get a similary message
'New' cannot be used on class 'FormTemplates.frmStandardDataEntry' because it contains a 'MustOverride' member that has not been overridden
Any help is greatly appreciated
Thank
Siobha