title: Pass windows form instance as parameter
body: <p>I have windows form which is calling another class's method and need to be passed as parameter. </p>
  
  <pre><code>public partial class Form1 : Form
      {                
          private myClass _myClass;       
  
          public Form1()
          {
              InitializeComponent();
              _myClass = new myClass(//pass this instance - Form1 - as parameter)
          }
      }
  </code></pre>
  
  <p>But I don't know how to pass Form1 instance as parameter? I need to do this, because this other class is creating system tray icon and menu strip and is able to close the parent form.</p>