Home All Groups Group Topic Archive Search About

Form & Designer File Becoming Separated

Author
20 Sep 2006 10:40 AM
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.

Author
20 Sep 2006 11:12 AM
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.

Show quoteHide quote
"NickP" <a@a.com> wrote in message
news:eQvuAFK3GHA.4932@TK2MSFTNGP02.phx.gbl...
> 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.
>
Author
20 Sep 2006 11:49 PM
Dennis
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.
--
Dennis in Houston


Show quoteHide quote
"NickP" wrote:

> 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.
>
> "NickP" <a@a.com> wrote in message
> news:eQvuAFK3GHA.4932@TK2MSFTNGP02.phx.gbl...
> > 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.
> >
>
>
>
Author
22 Sep 2006 11:27 AM
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.

Show quoteHide quote
"Dennis" <Den***@discussions.microsoft.com> wrote in message
news:1547001B-1441-4F9E-91A1-B7DC901C6C40@microsoft.com...
> 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.
> --
> Dennis in Houston
>
>
> "NickP" wrote:
>
>> 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.
>>
>> "NickP" <a@a.com> wrote in message
>> news:eQvuAFK3GHA.4932@TK2MSFTNGP02.phx.gbl...
>> > 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.
>> >
>>
>>
>>