Store the picked item in a variable first:
Code:Dim myRandom As New Random Dim i As Integer = ListBox2.Items.Count Dim item = ListBox2.Items.Item(myRandom.Next(i)) RefreshIESettings(item) // Do something with 'item' now to display which was picked.