I have been trying to show progress (progressbar) while populating a DataGrid on background thread using Visual Basic 2005 .NET 2.0.
There's always a glitch somewhere :(
Does anyone have a simple working example on how to do this ?
I do not understand how to use the methods for threads,
When I think I've worked it out I get this error:
This BackgroundWorker states that it doesn't report progress. Modify WorkerReportsProgress to state that it does report progress.
'I haven't supplied code because I've tried all sorts of ways and I've given up (code looks sloppy)
' here's an idea though:
' vb code:
fill datagrid on new thread
var1 = "finished" ' when done.
show progressbar by loading new form.
do while var1 <> "finished"
show progress from 0 to 100%
end timer ' do not sleep as this HALTS other threads as well.
if var1 = finished then
close progress form