R
RW
Hello,
I have declared a Public Class MDIMenu that Inherits from
System.Windows.Forms.Form.
In the InitializeComponent Sub I declare it as a MdiContainer with this
statement: Me.IsMdiContainer = True
In my Sub Main I start my application by calling an instance of the MDIMenu
class in this way:
Dim frm As New MDIMenu
Application.Run(frm)
I get this error: Specified cast is not valid
When I build or rebuild my solution I don't get no build error's and I can't
trace the error further than the command Application.Run(frm).
So can anyone give me a suggestion what could have gone wrong here?
I already tried to make an other, simpler form to start with, but I get the
same error.
I have declared a Public Class MDIMenu that Inherits from
System.Windows.Forms.Form.
In the InitializeComponent Sub I declare it as a MdiContainer with this
statement: Me.IsMdiContainer = True
In my Sub Main I start my application by calling an instance of the MDIMenu
class in this way:
Dim frm As New MDIMenu
Application.Run(frm)
I get this error: Specified cast is not valid
When I build or rebuild my solution I don't get no build error's and I can't
trace the error further than the command Application.Run(frm).
So can anyone give me a suggestion what could have gone wrong here?
I already tried to make an other, simpler form to start with, but I get the
same error.