471,317 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,317 software developers and data experts.

Why does file open as form?

I'm using VS 2K5. I break my forms into three files plus the RESX. I
usually have:
frmForm1.cs
frmForm1.Designer.cs
frmForm1.Logic.cs
ForForm1.resx

This allows me to double click the first file to get a designer view
and code view on the others w/o right clicking. It's also good
seperation of the auto generated wincode. I do this by editing the
csproj file:

<Compile Include="frmForm1.Logic.cs">
<DependentUpon>frmForm1.cs</DependentUpon>
</Compile>

On one project, this isn't working. The frmForm1.Logic.cs file always
opens in design view. That is supposed to only happen if
<SubType>Form</SubType>
is included in the <compile/> node. The file only contains this code:

namespace myspace
{
partial class frmForm1
{

}
}

Any ideas why this keeps happening?

Thanks,
Brett

Feb 22 '06 #1
0 908

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by matt | last post: by
4 posts views Thread by Michael Grosse | last post: by
14 posts views Thread by Anoop | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.