title: Invoke from different thread
body: <p>I can't believe it,this works in my other application,but in this one,which has similiar structure - it doesn't!</p>
  
  <pre><code>    public string ListAdd
      {
          set
          {
              if (listView1.InvokeRequired)
              {
                  this.Invoke((MethodInvoker)delegate
                  {
                      listView1.Items.Add(value);
                  });
              }
              else
              {
                  listView1.Items.Add(value);
              }
          }
      }
  </code></pre>
  
  <p>The way I call it:</p>
  
  <pre><code>        var formz = Form.ActiveForm as Form1;
          if (formz != null)
              formz.ListAdd = "asdasdasdasd";
  </code></pre>
  
  <p>If I call it from the function where I receive packet(I want to put it on the listView) over TCP - Nothing happens,but If I call it in that same class where I initialize WinSock - it works.</p>
  
  <p>Where could the problem be?</p>
  
  <p><strong>EDIT:</strong>
  I just debugged the application ,formz is null at the place I call it(receive function).
  Why is it null there,but not at any other place?</p>