tags:

views:

16

answers:

1

I have this method:

private void listView1_DoubleClick(object sender, EventArgs e)
    {            
        if (listView1.SelectedItems.Count > 0)
        {
            ListViewItem selectedFile = listView1.SelectedItems[0];
            label7.Text = selectedFile.ToString();
            string selectedFileLocation = selectedFile.Tag.ToString();

            PlaySoundFile(selectedFileLocation);
        }                
    }

The result is this:

alt text

How can I retrieve the exact text that is selected in the ListView? :D

+2  A: 
label7.Text = selectedFile.Text;
Element
D'oh! Who knew.
Sergio Tapia