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

VS 2010 Distributing items across several listboxes.

$
0
0
Hey guys, long time since I posted here. I've been working in C#, and have yet to find a decent *ACTIVE* C# forum for help...



So, heres my scenario:

ListboxQueue 1: 80 Items. (Queue)

ListboxWork 1(through 6): 0 Items (Work 2 be done)



ListBoxWork is actually sitting inside of a List(of Listbox).



What is the best way to distribute each item from the queue into the work (with a max of 8 per LB)...

Now, I could do a lot of if statements, but I would like it to use the List(of listbox) to do the spread...

Now, I have 80 items, 6 "workers"...with a max of 8 per worker, it'd come out to 48...which means i'd like to leave the last 32 items in the queue.



(I know I stated this is for C#, but I also know how to convert VB as well)


Thanks for the solution.


I am not necessarily looking for a code snippet, but more so a direction.

Viewing all articles
Browse latest Browse all 27348

Trending Articles



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