Form & Designer File Becoming Separated

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.
 
N

NickP

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.
 
G

Guest

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.
 
N

NickP

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top