title: How to use separate .cs files in C#?
body: <p>Forum; I am a newbie working out a bit of code. I would like to know the best way to use separate .cs files containing other classes and functions. As an example of a basic function would would like to click on a clear button and have it clear all fields on a form. The code is split up into three .cs files. Main.cs, MainForm.Designer.cs and btClear.cs. </p>
  
  <p>MainForm.Designer.cs contains the designers automatically created code including the Clear Button, and the text boxes I would like to clear. </p>
  
  <p>I would like to have the code to clear the text boxes contained in btClear.cs. I understand it would be easy to simply to place this code in MainForm.Designer.cs however I would like to use this as a template in order to use separate .cs files as a standard practice. </p>
  
  <p>Can someone give me an example of how to do this please?</p>