MAJOR MenuStrip Bug - All MenuStrip Items have disappeared!! How to fix?

  • Thread starter Thread starter Ryan_Fitzgerald
  • Start date Start date
R

Ryan_Fitzgerald

Guest
Hello Everyone!

Ive been working in Visual Basic 2010 Express for over 2 years now, and I dont think Ive ever came across something that has ever made me so angry before.

I have over 20 items, and sub-items, in my menustrip all linked to about 2,000 lines of code. That might sound ridiculous - but they do a lot. I was working on adding images to the menustrip items and when I went to debug it to go check them out - my whole menustrip was gone (my menustrip was actually still there, just no items)! Then when I went back to the designer they were gone there too!

I dont understand what is wrong here - but its a MAJOR bug in this software. Its almost impossible to recreate what all of the menustrip items do, due to the high number of lines of code. I feel like theres some way to fixing this, however. I searched this on Google and there were some other issues - most being in VS2005. Well Im in VB Express 2010, so thats not for me. One person said he was adding a picture to a PictureBox and it happened to him and that he deleted the picture from his resources and it was back to normal. I figured something like that could have happened. I deleted all of the icons I had used on the menustrip from my resources and that didnt do anything. Now, I didnt delete any of my menustrip items or set the visible property to false (Im not the stupid and that wouldnt explain why theyre not in the designer either). When you go to the Properties window and click on Items (...) in the MenuStripMain (AKA MenuStrip1) it says there is nothing, but when you try to add one and change the name to one that existed before an error comes up saying that there is already one created with that name! Makes no sense to me whatsoever!

So I figured that I would try to fix it on my own before I put this question up. I created a new project, added a menustrip, and added an item named File. I then compared the designer code of each project - the original and the test one. It came up with something interesting. The code was the exact same (except for a couple of different names), but the code wasnt "colored." For example stuff like .Point was black and not blue. I attached an image below.

Does this make sense to anyone out there?

a25a08f3410dbc90b6e1ce2343e38a7d._.jpg


Continue reading...
 
Back
Top