M
M O J O
Hi,
I've created a MasterForm which all my forms in my project must derive from.
In my MasterForm, I've overloaded the New event with this code:
Public Sub New(ByVal SomeText As String)
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
'Do something with SomeText...
End Sub
I've add an inherited form MyForm which inherits from my MasterForm.
Here's my question....
Why can't I write Dim MyNewForm As New MyForm("Just a test") ?
The overloaded New(ByVal SomeText As String) is not visible when I'm
creating a new MyForm (which inherits from MasterForm).
What am I doing wrong?
Thanks.
M O J O
I've created a MasterForm which all my forms in my project must derive from.
In my MasterForm, I've overloaded the New event with this code:
Public Sub New(ByVal SomeText As String)
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
'Do something with SomeText...
End Sub
I've add an inherited form MyForm which inherits from my MasterForm.
Here's my question....
Why can't I write Dim MyNewForm As New MyForm("Just a test") ?
The overloaded New(ByVal SomeText As String) is not visible when I'm
creating a new MyForm (which inherits from MasterForm).
What am I doing wrong?
Thanks.
M O J O