I'm developing a windows forms based software that process various '.log' files and provides the output to the user.

I've implemented a stop button to stop the processing of the files and when the button is clicked, a message box would display with Yes/No options.

The process thread keeps on running when the message box is displayed. I would like to pause the process thread temporarily till the user responds to the message box.

I tried 'suspend' method and it is actually obsolete.

Need your assistance.

Thank you

Re: Pausing Background process 80 80

Could this help?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.