Hi,

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
Karthik

Could this help?

Be a part of the DaniWeb community

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