title: Cannot invoke method
body: <p>I try to change ListView from other thread. I get an error: "Object of type System.String cannot be converted to type System.String[]". If I do not pass string[] as a parameter, the compliler will not compile the code. Do you have any idea what may be wrong? </p>
  
  <pre><code>public delegate void UpdateListView(string[] request);
  public void UpdateComponents(string[] request)
  {
      for (int j = 0; j &lt; request.Length; j++)
      {
          switch (request[j])
          {
              case "ListViewSubnetworksChanged":
                  if (listView1.InvokeRequired)
                  {
                      UpdateListView d = new UpdateListView(UpdateComponents);
                      this.Invoke(d, request);
                  }
                  else
                  {
                      listView1.Items.Clear();
                  }
                  break;
          }
      }
  }
  </code></pre>