title: How do I call a non-static method from a static method from a different class?
body: <p>I would like to call a non-static method from a static method located in a different class. I know the instance of the class from which I would like to call the method from but I am not able to access it.</p>
  
  <pre><code>public partial class MainForm : Form
  {
      public MainForm()
      {
          InitializeComponent();
          Helper _Helper = new Helper(this);
      }
      public void DoSmth(string input)
      {
          Console.WriteLine(input);
      }
  }
  
  public class Helper
  {
      MainForm _mainform = null;
  
      public Helper(MainForm mainform)
      {
          _mainform = mainform;
          _mainform.DoSmth("test"); //ok
      }
      public static void Test ()
      {
          _mainform.DoSmth("test"); //generates error
      }
  }
  </code></pre>