开发者

visual inheritance is currently disabled in my PocketPC project

开发者 https://www.devze.com 2023-01-18 11:23 出处:网络
I have a pocketPC project in c# (visual studio 2005) I want to make base form and child form fro开发者_开发问答m the base form

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号