Ok, I have a menuStrip and a toolStrip. the menuStrip is laid out like this:
Actions
Connect
Disconnect
-
Exit
Pretty simple. The toolstrip has 1 item, a toolstripstatus . I decided I wanted to add a little icon next to the status text, so I opened up the image property in Design mode and imported 2 images. Both were PNG images and were 256x256 resolution. I decided that I wanted to use smaller versions since it was, after all, a toolstripstatus . So I deleted the 2 image resources from the solution explorer and immediately got loads of errors. Turns out the toolstripstatus was still trying to access the image resource that I deleted. No problem, I'll just manually remove that line of code from the Designer. Of course not, now I get all sorts of errors when I try to debug, something like "code generation for property 'items' failed...", and when that went away and my project actually debugs...lo and behold, I have no menustrip items OR toolstripstatus ! The menu strip is still there and the toolstrip is still there...but their items are gone!
This is really frustrating because I went through ALL of my project files and looked for instances of the name of the original image I used, or even any instance of the text ".png". There were none, in any of the project files. So why am I still having this problem?!? If I look in the designer I can see that my menu strip items are in there, along with my toolstrip (even though I deleted the toolstrip from the project...) Someone PLEASE help me!
Actions
Connect
Disconnect
-
Exit
Pretty simple. The toolstrip has 1 item, a toolstripstatus . I decided I wanted to add a little icon next to the status text, so I opened up the image property in Design mode and imported 2 images. Both were PNG images and were 256x256 resolution. I decided that I wanted to use smaller versions since it was, after all, a toolstripstatus . So I deleted the 2 image resources from the solution explorer and immediately got loads of errors. Turns out the toolstripstatus was still trying to access the image resource that I deleted. No problem, I'll just manually remove that line of code from the Designer. Of course not, now I get all sorts of errors when I try to debug, something like "code generation for property 'items' failed...", and when that went away and my project actually debugs...lo and behold, I have no menustrip items OR toolstripstatus ! The menu strip is still there and the toolstrip is still there...but their items are gone!
This is really frustrating because I went through ALL of my project files and looked for instances of the name of the original image I used, or even any instance of the text ".png". There were none, in any of the project files. So why am I still having this problem?!? If I look in the designer I can see that my menu strip items are in there, along with my toolstrip (even though I deleted the toolstrip from the project...) Someone PLEASE help me!
Comment