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