Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

ListView Index Issue

$
0
0
I need to get the name of the item that is select on a listview control onto my clipboard.
But every time the code executes this error appears.
"InvalidArgument=Value of '1' is not valid for 'index'.
Parameter name: index"

This is the Code -
  Dim x As Integer
        x = ListView1.FocusedItem.Index
        My.Computer.Clipboard.SetText("Name of Item is" + ListView1.SelectedItems(x).Text)


Viewing all articles
Browse latest Browse all 51036

Trending Articles



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