Reputation: 1337
Long story short I made a form in VB.Net project which involves lots of icons and images. My problem is when I build my project, and then go back to that form, suddenly errors showed up.
The errors says :
"The type 'MyProject.MyResources.Resources' has no property named 'myicon'".
Just to be clear, it worked fine before I did the build, and it happened to every single images I have on Resource.
When I chose "Ignore and Continue" all of the images I used are gone.
I tried to googled it, some says to delete my .exe file on Application/Bin/Debug folder, which is working.
But this issue has been some kind of an annoying one, since it happens again every single time I build.
Can someone tell me how to resolve this? Or this is a fixed bug from Visual Studio 2010?
Thank you
Upvotes: 0
Views: 929
Reputation: 1001
You can get over that problem if you remove the reference to the project itself, I did that and the problem went away.
Upvotes: 0
Reputation: 177
I had this error too.
At first, I rebooted my PC/Laptop and it went back to normal. But when i build my project, it started all over again. Then i tried this:
Project -> Project Properties -> Resources -> images to drop your png image. If not, then do it and see if it is there otherwise drop it.
Another solution would be:
Me.Button1.Image = My.Resources.Resources.myicon
Hope it helps.
Upvotes: 2