K
kimiraikkonen
Hi,
I'd asked similiar question before but couldn't get help. I have a
listbox and and items (eg: 10 items, or more or less,depends). I want
to create a shuffle (random) list with NO "repeat".
I mean, think about media player's playlists, like them, i want my
playlist item to be selected for only "once" with no repeat.
I used this simple code block but it didn't help because it may
frequently repeats the same item in next selection which isn't the
thing i want to have:
Dim shuffle as new Random
listBox1.SelectedIndex = shuffle.Next ( 0, listBox1.Items.Count - 1 )
Then tried some system.collections namespace work with no solid
change.
So, shortly my intention is to select listbox items for "once" with
random order (shuffle) like media player's playlists, and when all the
items have been selected, i want to display "no item left unselected"
msgbox.
That's all i want to implement.
Any help will be greatly appreciated.
Thanks!
I'd asked similiar question before but couldn't get help. I have a
listbox and and items (eg: 10 items, or more or less,depends). I want
to create a shuffle (random) list with NO "repeat".
I mean, think about media player's playlists, like them, i want my
playlist item to be selected for only "once" with no repeat.
I used this simple code block but it didn't help because it may
frequently repeats the same item in next selection which isn't the
thing i want to have:
Dim shuffle as new Random
listBox1.SelectedIndex = shuffle.Next ( 0, listBox1.Items.Count - 1 )
Then tried some system.collections namespace work with no solid
change.
So, shortly my intention is to select listbox items for "once" with
random order (shuffle) like media player's playlists, and when all the
items have been selected, i want to display "no item left unselected"
msgbox.
That's all i want to implement.
Any help will be greatly appreciated.
Thanks!