Note that there are some explanatory texts on larger screens.

plurals
  1. POListview double click not working correctly
    primarykey
    data
    text
    <p>I have a problem with this listivew. When I double click it, it should show me a dialog of info of the 1st cell of the row I click and that works perfectly fine.</p> <p>Now the problem is that if I keep clicking rows, I still get the dialogs from the previous rows I've clicked.</p> <pre><code>I click a random row 1 time: Shows me dialog I click another random row: Shows me dialog from the first row I clicked, then when I close said dialog it shows me the dialog of info of the row I clicked. I click another random row: Shows me dialog from the first row I clicked and from the second one. </code></pre> <p>.. and it keeps going</p> <p>Here's the code:</p> <pre><code> private void listViewPlayers_MouseDoubleClick(object sender, MouseEventArgs e) { string pUser = ""; int pID = -1; pID = Convert.ToInt32(listViewPlayers.SelectedItems[0].SubItems[0].Text); pUser = listViewPlayers.SelectedItems[0].SubItems[1].Text; bw.WorkerReportsProgress = true; bw.DoWork += new DoWorkEventHandler ( delegate(object o, DoWorkEventArgs args) { BackgroundWorker b = o as BackgroundWorker; pInfo = pInfoClient.DownloadString("get info from web").Trim(); } ); bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler ( delegate(object o, RunWorkerCompletedEventArgs args) { if (strcmp(pInfo, "ERROR")) { MessageBox.Show("There was an error retrieving user information!\nPlease try again later..", "Error"); return; } string[] iSplit = pInfo.Split(new char[] { (char)'|' }, System.StringSplitOptions.RemoveEmptyEntries); playerInfo iInfo = new playerInfo(pUser, pID, iSplit); iInfo.ShowDialog(); } ); bw.RunWorkerAsync(); } </code></pre> <p>And excuse my explanation of the problem, I'm terrible at it.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload