title: How to include Designer.cs into main class in C#
body: <p>When I create an empty project in Visual Studio there is a Form1.cs which contains the Subfiles Form1.designer.cs and Form1.resx.</p>
  
  <p>When I download some sample code e.g. from CodeProject very often the Designer.cs isn´t there and the code of the designer is included in the Form1.cs. I tried to make it like this, but I just get an error of Visual Studio when I want to view the Form1.cs[Design] tab.</p>
  
  <p>How can I achieve that the designer code is in the Form1.cs and not in a seperate file?</p>
  
  <p>Addition:
  Visual Studio creates my solution file in the project folder and the project files in the subfolders. In the sample codes often all files are in the same directory.</p>
  
  <p>How may I achieve that?</p>
  
  <p>Addition:
  Here is a link to a sample Main.cs where the designer code is integrated to the
  <a href="http://dl.dropbox.com/u/60191046/Main.cs" rel="nofollow">Main.cs</a></p>