use This ;)
For z As Integer = 0 To ListBox1.Items.Count -1
Items is zero based ..
count returns 1 .. means there is only the item index 0
but you loop again through it with index 1 ..this is where you get your error
because there is no item(1)!
greets