Form Inheritance: Specified Cast Is Not Valid?

J

James

I have the above problem with an inherited form, which was working
previously.

I have a base form, frmBase which is inherited by my user forms. When I try
to 'design' either frmBase or a user form, I get either the 'Specified Cast
Is Not Valid' error, or the 'Ambiguous Match' error.

Both of these are driving me crazy, as it was working previously.

I have created a sample demonstrating this:
http://www.j.goodman.dsl.pipex.com/Files/InheritanceExample.zip


I am wondering if it is the setup on my laptop causing the problem (WinXP
Pro, SP2 with .NET Framework 1.1 SP1). These are the only things I can begin
to guess might be causing a problem, but I dont know where or how.


Can you replicate this error with my sample?
Any further suggestions?
 
I

Imran Koradia

Basically, visual inheritance is not supported in the compact framework if
thats what you are using. Here's the original link:
http://groups.google.com/groups?threadm=eM0Ol8KECHA.824@tkmsftngp05

If that doesn't resolve for you either, then goto groups.google.com and type
in "visual inheritance cf" and look at the thread that has 18 articles and
is dated June 10th, 2002. In one of the messages, someone mentions a work
around for this.

hope that helps...
Imran.
 
J

James

Thanks for that.

Makes interesting reading, but I dont understand how it was working
perfectly on my CF application a few weeks ago, & isnt anymore.

It is VS.NET 2003, not the 2002 version. Not sure if visual design is
supported in 2003?
 
I

Imran Koradia

Makes interesting reading, but I dont understand how it was working
perfectly on my CF application a few weeks ago, & isnt anymore.

I'm afraid I do not know the answer to that since I'm not too familiar with
the compact framework.
It is VS.NET 2003, not the 2002 version. Not sure if visual design is
supported in 2003?

I believe visual inheritance is still not supported in VS 2003 (I think this
issue is well documented but can't find the link right now).


Imran.
 

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