C
C#4mo ago
Inject

✅ Issue with picture box in C# Project

I have a project I'm working on and one of the picture box's will change on a button press. The code I have is
picStatus.Image = Properties.Resources.checkedRedNew;
picStatus.Image = Properties.Resources.checkedRedNew;
Which provides an error "Resource does not contain defintion for checkedRedNew" Further down I have another line of code setting the notify icon the same way and it works fine. I've checked and I have the file added to the project. Any clue what might be going on? Thanks.
No description
No description
4 Replies
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX4mo ago
If you have no further questions, please use /close to mark the forum thread as answered
Inject
InjectOP4mo ago
yeah no I kinda get that but I had done it about 3 ways.
No description
Inject
InjectOP4mo ago
And it works for the notifcation icon which is done exactly the same way Alright My appolgies I was indeed missing something.
picStatus.Image = Resource1.checkedRedNew;
picStatus.Image = Resource1.checkedRedNew;
Works Also I know a "folder won't magically do anything" but I didn't make a folder called resources. I had followed some guide and to many things happened of the course of weeks so I gusse something was missed by me or otherwise between then. ANyways thanks I gusse

Did you find this page helpful?