title: Partial Form Class C# - Only display code view for class
body: <p>I have a Blank Forms project in C#.</p>
  
  <p>I wanted to separate the functions and events into different Codefiles on the Form Class. In order to make it more manageable when it becomes large and multiple people are using it on CodeControl.</p>
  
  <p>So I created;</p>
  
  <ul>
  <li><code>Form1.Functions.cs</code></li>
  <li><code>Form1.Events.cs</code></li>
  </ul>
  
  <p>These extra partial classes both consist of</p>
  
  <pre><code>namespace MyLargeProject
  {
      public partial class Form1
      {
  
      } 
  
  }
  </code></pre>
  
  <p>I also changed the <code>csproj</code> file so the VS IDE would make them appear in the Soution Explorer.</p>
  
  <p>Example</p>
  
  <pre><code>&lt;Compile Include="Forms\Form1.Functions.cs"&gt;
    &lt;DependentUpon&gt;Form1.cs&lt;/DependentUpon&gt;
    &lt;SubType&gt;Form&lt;/SubType&gt;
  &lt;/Compile&gt;
  </code></pre>
  
  <p>So the program compiles and all is looking good except that when I open the file from the solution explorer it opens up a blank Form designer, and not the code.</p>
  
  <p>I want VS to only open this class as a code file to limit issues with the Form1.Designer.cs file.</p>
  
  <p>I have also tried removing the SubType</p>
  
  <pre><code>  &lt;SubType&gt;Form&lt;/SubType&gt;
  </code></pre>
  
  <p>but Visual Studio keeps adding it back to the csproj file.</p>