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 -
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)