I am creating a tool which is doing some stuff and I want if a user press ctrl + C in the middle of an execution, tool should detect this, cancel the further execution and come out gracefully. Can you please help me how to do this in C#?
↧