Hi
If I understand your question, see the code example below. Click drag to select a range, ctrl-click to select individually, shift click to select a range to clicked item. And any combination to select/deselect etc
' Form1 with ListBox1
Option Strict On
Option Explicit On
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
With ListBox1
.SelectionMode = SelectionMode.MultiExtended
.Items.AddRange({"1", "2", "3", "4", "5"})
End With
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim s As String = "Selection:" & vbCrLf
For Each i As String In ListBox1.SelectedItems
s &= i & ", "
Next
Clipboard.SetText(s)
MessageBox.Show(s.Substring(0, s.Length - 2))
End Sub
End Class