I have a CPU-intensive subroutine that takes a datatable as its parameter. When it begins, the app hangs until it completes. this can take as long as 60 seconds for a 1.5 MB XML file. I can imagine it taking longer to process larger incoming files.
Therefore, I need to show the user something like a progress bar or even just a popup that informs them that the program has not frozen.
What I can't figure out yet is how to execute this subroutine from within the BackgroundWorker_DoWork sub, since its datatable parameter is not declared in the backgroundWorker. I can't just add the datatable parameter, sicne then the signatures don't match. Little help?
Start Free Trial