title: Listview execution failed
body: <p>I do not know what happens, when I execute the button event (StartClickingButton_Click), the click coordinates stored in the ListView are executed one after the other, and not only the one that I select is executed (when selecting fields of the textbox are filled ).</p>
  
  <p>This is the code that I am using.</p>
  
  <p>-The problem is that when executing the button event, I go through all the coordinates stored in the ListView, and not the one I have selected.</p>
  
  <p>Thanks for your comments and possible solutions.</p>
  
  <pre><code>private void StartClickingButton_Click(object sender, EventArgs e)
      {
  
          int iterations = 1;
          List&lt;Point&gt; points = new List&lt;Point&gt;();
          List&lt;int&gt; times = new List&lt;int&gt;();
  
          foreach (ListViewItem item in PositionsListView.Items)
          {
              int x = Convert.ToInt32(item.Text);
              int y = Convert.ToInt32(item.SubItems[1].Text);
              times.Add(Convert.ToInt32(item.SubItems[2].Text));
  
              points.Add(new Point(x, y));
          }
          try
          {
              ClickThreadHelper helper = new ClickThreadHelper() { Points = points, Iterations = iterations, Times = times };
              ClickThread = new Thread(new ThreadStart(helper.Run));
              ClickThread.Start();
          }
          catch (Exception exc)
          {
              MessageBox.Show(exc.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
          }
      }
  </code></pre>