I have a pocketPC project in c# (visual studio 2005) I want to make base form and child form fro开发者_开发问答m 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"
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
精彩评论