'Application' is not a member of 'My'

本秂侑毒 提交于 2019-12-12 21:25:38

问题


I'm trying to add a Splash Screen to my form, but I'm getting the error -

'Application' is not a member of 'My'.

I've done some research and came across two possible solutions, but neither of them have worked for me.

  1. Splash Screen Error "'Application' is not a member of 'My'." The answer here suggests ticking the 'Enable Application Framework' option in the Project settings, but that option is greyed out.
  2. The 'My' Namespace in a VB.NET Application is Missing Members. This answer suggests that I need to add a Reference to the Project in the Project settings, but doing this does not fix the error.

Can anyone please suggest what I can do to solve this problem? Thanks.


回答1:


That's a known issue for me. Open .vbproj file and change where it says

<MyType>Empty</MyType>

to

<MyType>WindowsForm</MyType>



回答2:


We tried the suggestion above but it did not work for us with a Class Library in Visual Studio 2013. After investigating another project that worked, we found that changing to using "Windows" instead of "WindowsForm" enabled that functionality

<MyType>Windows</MyType>


来源:https://stackoverflow.com/questions/20610944/application-is-not-a-member-of-my

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!