Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27348

VS 2010 Selecting a Random items from a listbox and removing it.

$
0
0
What do I add to this when that random selection goes into lstBlue. I want it removed after it was added to lstBlue.

I got the selecting random to work so far.
Code:

        Dim selectRnd As New Random
        lstBlue.Items.Add(lstAll.GetItemText(lstAll.Items(selectRnd.Next(0, lstAll.Items.Count))))


Viewing all articles
Browse latest Browse all 27348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>