Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

visual inheritance is currently disabled in my PocketPC project

Tags:

c#

I have a pocketPC project in c# (visual studio 2005) I want to make base form and child form from the base form when I do that I see this: "visual inheritance is currently disabled because the base class references a device-specific component or contains p/Invoke"

like image 998
Mehdei Avatar asked Oct 04 '10 09:10

Mehdei


1 Answers

Had the same problem. Go to your base form (which is inherited) and view a class diagram. Select the base form class shape and go to properties window, click on CustomAttributes, a window comes up, just add this line in it:

DesktopCompatible(true)

and rebuild application, it should display forms fine in designer

like image 82
jorda3 Avatar answered Sep 21 '22 23:09

jorda3