Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have an image present in the resources folder.
But when i compile the project. it gives a warning that "The type myproject.my.resources.resources has no property named "disk""

Me.ToolStripButton1.Image = Global.SeleniumMCP.My.Resources.Resources.disk
Posted
Updated 9-May-17 17:22pm

This is as simple as this: there is no such property, period.

Do the simple thing: open your .resx node in Solution Explorer. It has a child node: VB.NET auto-generated code you use for accessing resources. So, instead of guesswork, asking pointless questions to people who don't have this file, even looking at Intellisense, do another simple step: open this file. You will see some static properties. Use them immediately, with their precise full names you will read form this file.

—SA
 
Share this answer
 
I know this is an old post but people will get this error, they will find this post and they will have pulled most of their hair out by the time they see this, however, this is what i've found works for me:

1. It's not you, it's MS. I'm using VS 2015 and i still get this!
2. I've found that it occurs when somehow the project references itself
3. This circular reference is not always visible under the references node (and it does not throw compile errors)

To resolve:

1. ON PURPOSE reference the projects output exe file
2. Do a clean
3. Delete the BIN folder
4. Compile
5. Close and Open VS
6. Check your reference node, you should see the self-referenced exe with an exclamation, delete the reference
7. Do another build

I find at this point my problem is resolved and i can continue working (for that day at least)

Hope this helps!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900