Form & Designer File Becoming Separated

  • Thread starter Thread starter NickP
  • Start date Start date
N

NickP

Hi there,

I am having an issue with the IDE in VB.NET 2005.

Some of the ".Designer.vb" files have becom separate from the base ".vb"
file. This has happened to a number of derived forms and if I try to view
the deisgner I am only presented with the base form.

Any ideas on how to join this back up again?

Nick.
 
Aaah I found a manual fix,

I opened to project file in an XML editor and edded the following element to
the effected parts...

effected parts:

form1.vb
form1.designer.vb
form1.resx

<EmbeddedResource Include="Forms\form1.designer.vb">
<DependentUpon>form1.vb</DependentUpon>
</EmbeddedResource>

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

After saving and reloading the items are joined correctly. How they became
"unjoined" is anyones guess, possibly VSS is to blame?

Nick.
 
Interesting. Is there anyway to prevent files from being separated so it's
like VB2003. I've got enough files in my projects and don't need two files
for a form.
 
Hi Dennise,

Pfftt I don't think, I can only think it is a bug with the IDE that it
happens in the first place. I have had the same thing happen in 2003 also.

Nick.
 
Back
Top