Oxiegen 88 Basically an Occasional Poster Featured Poster

Hi!

I've come across an interesting, and annoying, bug(?) in Visual Studio 2005.
I don't know if anyone else has been experiencing this bug, and I don't know if this is something that exists in all versions, but it does in mine. I'm using version 8.0.50727.42.

I have set the solution explorer to not show all files, only the vb files.
The thing that happens is that when you're dealing with a lot of forms, at one point something happens and one, or more, of the forms are split into separate files (designer, resource and form code).
Which leads to that when you double-click the vb file to see the designer an empty form is displayed. But when you right-click and choose View Code, all code is present and accounted for.

I haven't figured out why this happens, but for some reason two essential values are removed from the project file (in my case the .vbproj file).

The values in question are marked in red.

<Compile Include="form1.Designer.vb">
  <DependentUpon>form1.vb</DependentUpon>
    </Compile>

and

<EmbeddedResource Include="form1.resx">
        <SubType>Designer</SubType>
  <DependentUpon>form1.vb</DependentUpon>
    </EmbeddedResource>

My work-around for this bug is to manually reinsert these values with notepad, or some other texteditor, and reload the project.
And voila! Everything is back to normal again. :)