wicksee
New member
Hi all.
I have a VB.NET app with a loop running that is continually managing a number of threads AND updating a ListView object depending on the results of the worker threads.
The problem I have is that if I try to move (drag) the form's window around the screen, or to scroll the ListView control, all code (notably, the loop) pauses until I stop dragging or scrolling. I want the loop to continue whilst I'm doing trivial things like moving the window around the screen.
Is there a way to do this?
I cannot move the loop to another thread, as I need the loop to update the ListView, and it must therefore run in the same thread that created the ListView object (ie, the form's main thread). I have already tried putting DoEvents() and Thread.Sleep() commands into the loop, but as you'd expect, this didn't help.
Many thanks in advance.
[EDIT] I think what I'm asking is is there a way to stop the form (or the ListView) from blocking whilst it is being dragged/resized/whatever?[/EDIT]
I have a VB.NET app with a loop running that is continually managing a number of threads AND updating a ListView object depending on the results of the worker threads.
The problem I have is that if I try to move (drag) the form's window around the screen, or to scroll the ListView control, all code (notably, the loop) pauses until I stop dragging or scrolling. I want the loop to continue whilst I'm doing trivial things like moving the window around the screen.
Is there a way to do this?
I cannot move the loop to another thread, as I need the loop to update the ListView, and it must therefore run in the same thread that created the ListView object (ie, the form's main thread). I have already tried putting DoEvents() and Thread.Sleep() commands into the loop, but as you'd expect, this didn't help.
Many thanks in advance.
[EDIT] I think what I'm asking is is there a way to stop the form (or the ListView) from blocking whilst it is being dragged/resized/whatever?[/EDIT]
Last edited: