Cannot show inherited forms in design mode

  • Thread starter Thread starter Magnus Lindberg
  • Start date Start date
M

Magnus Lindberg

It seems that every now and then, totally at random, Inherited forms stop
working in design mode. Once they stop working, I can never get them to work
again. When I try to show the form in design mode it says "An exception
occurred while trying to create an instance of MyClassName. The exception
was "Specified cast is not valid."".

The form compiles just fine and everything works well except for this error
message which leads me to belive that Visual Studio.NET is more to blame
than me. ; p.

I have tried to delete the resx file and have it recreated but that doesn't
get me any closer to a solution.

Is this a known bug? Are there any workarounds or do you have any ideas as
to what I should do to resolve this annoyance?

Thanks,

Magnus
 
* "Magnus Lindberg said:
It seems that every now and then, totally at random, Inherited forms stop
working in design mode. Once they stop working, I can never get them to work
again. When I try to show the form in design mode it says "An exception
occurred while trying to create an instance of MyClassName. The exception
was "Specified cast is not valid."".

The form compiles just fine and everything works well except for this error
message which leads me to belive that Visual Studio.NET is more to blame
than me. ; p.

This may be a bug. Does the form work in the compiled application?
 
Back
Top