I'm losing icons from a .resx file, and I'm not sure why. I'm adding the
icons using ResEditor (the resource editor that ships unbuilt with VS.Net).
I add the icons, save the .resx file, and all seems well. If I reopen the
.resx file, the icons are there, just as expected.

But after a couple of compiles, the icons are gone. It I reopen the .resx
file, they are no longer there. My code doesn't do anything with the .resx
files-- it just reads the resources:

System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(this.GetType());
this.Icon = (System.Drawing.Icon)resources.GetObject("Folder.Icon");

I'm using EnableVisualStyles() in the Main() method, like this:

// Enable XP visual style
Application.EnableVisualStyles();
Application.DoEvents();

// Start the application
Application.Run(new FormMain());

Can anyone shed any light as to what's going on? Thanks
--
Dave Veeneman
Foresight Systems