all groups > vb.net controls > september 2004 >
You're in the

vb.net controls

group:

Form Inheritance: Specified Cast Is Not Valid?


Re: Form Inheritance: Specified Cast Is Not Valid? Imran Koradia
9/20/2004 1:41:43 PM
vb.net controls:
Are you using the CompactFramework?
Does this apply to you?
http://tinyurl.com/6bklz

Imran.

[quoted text, click to view]

Re: Form Inheritance: Specified Cast Is Not Valid? Imran Koradia
9/20/2004 3:20:07 PM
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%40tkmsftngp05

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.

[quoted text, click to view]

Re: Form Inheritance: Specified Cast Is Not Valid? Imran Koradia
9/20/2004 4:04:02 PM
[quoted text, click to view]

I'm afraid I do not know the answer to that since I'm not too familiar with
the compact framework.

[quoted text, click to view]

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.

Form Inheritance: Specified Cast Is Not Valid? James
9/20/2004 6:19:37 PM
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?

--
Cheers,

James Goodman

Re: Form Inheritance: Specified Cast Is Not Valid? James
9/20/2004 8:03:12 PM
Cannot get the link to work.

Can you post its content here?

--
Cheers,

James Goodman
[quoted text, click to view]

Re: Form Inheritance: Specified Cast Is Not Valid? James
9/20/2004 8:34:09 PM
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?

--
Cheers,

James Goodman
[quoted text, click to view]

AddThis Social Bookmark Button