Click here to Skip to main content
15,569,858 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I was trying to load image file from Resources tab to my PictureBox (WinForms) by using this method
textboxVid.Image = new Bitmap(FlowSERVER1.Properties.Resources.myimage);


But apparently the intellisense throws this error

'Resources' does not contain a definition for 'myimage'


My Resources tab contains those files:

garbage.png
eyesicon.png
myimage.png

I'm managed to use the others image but not for myimage.png and I don't know why this is happening..

What I have tried:

textboxVid.Image = new Bitmap(FlowSERVER1.Properties.Resources.myimage);
Posted
Comments
RickZeeland 21-Oct-22 3:07am    
I had problems too when switching between VS2019 and VS2022, it might be best to delete the resource and start with a new one, and stick to working with the same VS version.
Dan Sep2022 21-Oct-22 9:01am    
I followed your steps, delete the current one and re-create the Resources folder on my current solution, but another problem happens which is that the Resources folder could not be detected by my intellisense which causes an erorr..

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