Quantcast
Channel: Active questions tagged listview - Stack Overflow
Viewing all articles
Browse latest Browse all 611

ListView version of ListBox.SelectedItem

$
0
0

I'm trying to perform an action once the user double clicks on an item in the listview.

but there doesn't appear to be any methods available for this. How can I solve this?

ANSWER

Thanks to Kyle's link:

    private void listView1_MouseDoubleClick(object sender, MouseEventArgs e)    {        if (listView1.Items.Count >= 1)            Process.Start(listView1.SelectedItems[0].Text);    }

Viewing all articles
Browse latest Browse all 611

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>