Do I need another thread ?

Do I need another thread ?
I suspect that I know the answer to this question, but here goes:

I am running an application wherein I read information in from a file and act upon it. I want to set the reads up recursively, but I want to be able to break out of it whenever I want to (at the end of the file read is sufficient) by unchecking the recursion checkbox. Is this something that can be done with an EVT or must I use a separate thread. My attempts so far do not allow me to focus back to the checkbox to uncheck it, so the cycle keep happening until I kill the program. Am I correct in presuming from this that I need a separate thread?

Vicki Stanfield

3S Confidence Meter Project

“A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty.”

– Winston Churchill