Hi, ok i have multiple threads running at once. All threads have the same code just chnaged a little for each one.

Anyways what happens is when i thread runs it start as listbox index 0, gets the item then runs the rest of the code and also does index +1

The other threads should use index 1, 2, 3 ect..., this works however sometimes 2 threads will end up with the same item, like if both are run at the same time, both threads use the same item.

I can not find a way so that all threads use a different item in the list.

How would this be done ?

Thanks