M
Martin Arvidsson, Visual Systems AB
Hi!
Is there any way to abort the process of GetFiles method?
I have a Method that will scan thousands of files and directories. But the
user will be able to abort this process, which i fully understand.
I do use a BackgroundWorker to be able to cancel to process, but since the
GetFiles don't ever leave the method until all the files has been found that
i told it to do, i cant process the BackgroundWorker.Cancelpending.
Any ideas?
Regards
Martin
Is there any way to abort the process of GetFiles method?
I have a Method that will scan thousands of files and directories. But the
user will be able to abort this process, which i fully understand.
I do use a BackgroundWorker to be able to cancel to process, but since the
GetFiles don't ever leave the method until all the files has been found that
i told it to do, i cant process the BackgroundWorker.Cancelpending.
Any ideas?
Regards
Martin