title: How to access form methods and controls from a class in C#?
body: <p>I'm working on a C# program, and right now I have one <code>Form</code> and a couple of classes. I would like to be able to access some of the <code>Form</code> controls (such as a <code>TextBox</code>) from my class. When I try to change the text in the <code>TextBox</code> from my class I get the following error:</p>
  
  <blockquote>
    <p>An object reference is required for the non-static field, method, or property 'Project.Form1.txtLog'   </p>
  </blockquote>
  
  <p>How can I access methods and controls that are in <code>Form1.cs</code> from one of my classes?</p>