Dear Herfried,
It works just fine. Thanks.
Romain
"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> * "Rvo" <romainvoes@{DoesNotLikeSpam}vlaamsparlement.be> scripsit:
> > I have written an application that manipulates files, while doing so the
> > program is running in a loop and any actions on the GUI will not get any
> > response. When I try to stop the processing of the files trough the GUI
by
> > clicking on a button this will not be done.
> >
> > The action connected to the stop-button is to set a boolean to "true"
> > in the loop which processes the files I check contiuously for the
boolean
> > becomming true and if so exit the loop.
> > But this condition is never set to true.
>
> I would use multithreading to do that. You can find a sample here:
>
>
<URL:
http://dotnet.mvps.org/dotnet/sample...s/FileSystemEn
umerator.zip>
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>