Newbie Question

R

Ross

Hi,

In my application (in VB.NET), I have made a winform, and
then I made another winform that inherits from the first
one.

However, when I am trying to look at the second one in
DESIGNER VIEW, it doesn't display. Instead I get the red
circle with an X in it, with the following error message:

"An exception occured while trying to create an instance
of MyFirstClass. The exception was "Constructor on type
MyFirstClass not found." "

There IS a constructor in MyFirstClass.
Any idea why I am getting that?

Thanks,

Ross
 
I

Ian Cooper

There IS a constructor in MyFirstClass.
Any idea why I am getting that?

Is it a default constructor (i.e. no parameters). You need one of those for the designer.
Ian Cooper
wwww.dnug.org.uk
 
R

Ross

I have a default constructor.
That's what I don't understand...
-----Original Message-----

Is it a default constructor (i.e. no parameters). You
need one of those for the designer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top