title: A Connecting Program.cs And Form.cs
body: <p>I have a function in my Form.cs that I want to summon in my program.cs</p>
  
  <p>But if the function is not static, program.cs can't use it. And if it's static, Form.cs can't use it because it involves controls which aren't static.</p>
  
  <p>I can delete my program.cs code and find a way to do the same in my form.cs but I was wondering if there is an easier way.</p>
  
  <p>That's generally what the function in the form.cs does</p>
  
  <pre><code>public void Toggle()
      {
          MyDomainUpDown.SelectedIndex = 3;
      }
  </code></pre>
  
  <p>The program.cs : </p>
  
  <pre><code>MainForm.Toggle();
  </code></pre>