title: How to use InvokeRequired
body: <p>I have the code below in vb.net, and I am converting it to c#. 
  <strong>EDIT</strong>
  Edited out irrelevant code.</p>
  
  <p>but I am stuck at the one with <code>InvokeRequired</code>. I have added a reference to <code>System.Windows.Forms</code> and still the code completion doesn't show <code>InvokeRequired</code>. The listview is on a separate thread to the one I am calling it from, and I need to get around that using Invoke. Can you please tell me what am I missing? 
  Thank you.</p>
  
  <pre><code>    Delegate Sub _AddClient(ByVal client As Socket)
      Private Sub AddClient(ByVal client As Socket)
          If InvokeRequired Then
              Invoke(New _AddClient(AddressOf AddClient), client)
              Exit Sub
          End If
          Dim lvi As New ListViewItem(client.LocalEndPoint.ToString)
          lvi.Tag = client
          lsvClients.Items.Add(lvi)
      End Sub
  </code></pre>