Yep, I tried that, but I get this error: Cross-Thread operation not valid: Control 'flptube' accessed from a thread other then the thread it was created on. The build_query, which is the main procedure, dynamically builds panels and adds them to that control flptube.
I found something that is suppose to make the threading function more like .net 1.1
Me.CheckForIllegalCrossThr
Main Topics
Browse All Topics





by: CraigWagnerPosted on 2009-04-09 at 07:38:37ID: 24107624
The 'correct' way to accomplish this would be to run the long-running task on a background thread and use the foreground thread to update the progress bar. The simplest way to do that would be to use code similar to the following (it's in C# as it's the only example I had handy, should be very easy to translate).
Select allOpen in new window