That's a known issue for me. Open .vbproj file and change where it says
<MyType>Empty</MyType>
to
<MyType>WindowsForm</MyType>
Question
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.
Can anyone please suggest what I can do to solve this problem? Thanks.
Solution
That's a known issue for me. Open .vbproj file and change where it says
<MyType>Empty</MyType>
to
<MyType>WindowsForm</MyType>
OTHER TIPS
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>
I recently ran into this issue as well. The solution in my case was that I had created a .NET Core app, rather than a .NET Framework app.
Copied my code into a new Framework app and it worked just fine.