Hi all,
I'm developing an app in VS 2005 using VB.net and CF2.
I have a base form, which I'll use for common functionality.
This all works perfectly for a while.. however, after compiling the project a few times I now receive the error "Visual Inheritance is currently disabled because the base class references a device-specific component or contains P/invoke" all the time. (This error appears in the IDE designer where you would normally have a WYSIWYG designer view of your form).
I have completely stripped the base form of everything... it has no controls on it at all, not even the default menu. In addition, the form contains no code.
Even after re-building the project with this stripped out base form.. every time I add a new inherited from and select the completely stripped out base form as the parent, I just get this same error each time.
I created a brand new project and built the project up from scratch again. This was fine for a while, but after a few iterations of adding more forms, re-compiling etc... this eventually went the same way. Once it starts happening there appears no way of getting around the issue! Forms that used to load just show the error, despite no changes to base form or the child itself.
If anybody has any work-arounds or ideas I'd be really please to hear.
Thanks,
Wheeldo.

Visual Inheritance is currently disabled because the base class references a device-specific component or contains P/invoke
Inaki Ayucar
I think I've managed to find an answer here. Seems to work for me: -
http://groups.google.com/group/microsoft.public.pocketpc.developer/browse_thread/thread/93493c18a9b79500/34be87361dbbbeda