I found a huge bug!

This bug is really pissing me off. Here is what i did and what happened.

I created toolbar, added some items, some of them with images, the images are resources.

Ok everything is fine until.

I go to properties>resources and delete a resource, its not in use by anything. Then i delete the image from the resources folder (in the ide). then all of the sudden the toolbar gets wiped out if u build, save or just wait a couple seconds.

Now the toolbar is still there, but the items are not there. So i go to the designer code, and the toolbar.items.addrange...... code is gone. So i gotta add the code back manually, becuase the toolbar menu items are still there, just not added to the bar.

Sometimes it will wipe out the root, but 1/2 the time it happened, i had to write the add item code for dropdown menus and all.Really pissing me off!!!!!!!!!!!! They need to release a damn patch for this now.

Then sometimes an error will popup saying it couldnt find the image i deleted. SO i go a Find search for it in the entire solution. It isnt there, so how does it need or know its there.

Plz fix it!

[1113 byte] By [SevenAlive] at [2008-3-7]
# 1

Sorry about the inconvenience!

We'll do our best to track this issue down with you - can you provide more specifics about your scenario? It always helps if you can take a blank Visual Studio and determine the most basic, specific steps you can to get this behavior to happen. That will make a world of difference for us.

Also, in the ideal case you could post this on our public bug-tracking site for Visual Studio, called Connect: https://connect.microsoft.com/VisualStudio. It will be tracked as a bug internally (and sent to the proper team directly), and you'll get updates when we make changes to the bug.

Thanks,
Scott Nonnenberg

ScottNonnenbergMSFT at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Visual C# Express Orcas...
# 2

Hi,

We are not able to reproduce the problem you mentioned. Here is what we tried.

1. Create a new Winforms App

2. Add a toolstrip control to the form

3. Have Items like button, dropdownbutton, split button with others like label, textbox.

4. Select the button item on the toolstrip

5. Select the Image property to bring up the Select Resource Dialog

a. Select Project Resource file

b. Click import

c. Import some images like “ blue lace 16”, “coffee bean”, “feathertexture“,“gone fishing“,“greenstone“ from the d:\windows directory

d. Select the “blue lace 16 image“

e. Click ok

f. Now you can see button item has “blue lace 16“ as the image

6. In the same way, assign “ blue lace 16” as image to the other items – dropdownbutton, split button

7. In the Solution Explores, click on “show all files”

8. Go to Project à Properties à Resources.resx (My Project -à Resources.resx in case of VB)

9. Delete the Coffee Bean Resource (note this is not used by any item of the toolstrip)

10. From the Resources on Solution Explorer, remove “Coffee Bean.bmp”

11. Open form1

Bug : Toolbar does not have items.

Please let us know if your steps are different from the one's listed above.

NagaSatishRupenaguntla at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Visual C# Express Orcas...
# 3
Ok You got to delete the image (resource) in windows explorer, not in the IDE. Then delete the file in the IDE under the resources folder, then go to properties > resources and delete it again. Then reload the form (designer) and try to compile. It should happen.

Also things to try. DO the above to a resource in use by the toolbar.

Rename the toolstrip to ToolBar.

I did have it named ToolBar when it did happened. Since then i renamed it and made sure no traces of the resource was in the code. Now i dont have a problem.

SevenAlive at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Visual C# Express Orcas...

Visual Studio Orcas

Site Classified