Environment: .net 3.5 WinForms application
I am looking for some ideas how to stop / interrupting a Windows Form application, e.g. when “something” takes too long. A typical scenario is reading large amount of data from a backend system and the user shall be able to press some key immediately stopping the loading.
- Normal events are not responsive enough, since the backend call somehow consumes so much time, they are not reacting in promptly fashion.
- In my read methods I have added explicit checks – but I cannot add such checks in 3rd party frameworks. Also it is somehow not a very nice approach.
Maybe someone has an idea how to reliable and promptly stop some running methods. Is there an interrupt I can use?
Regards HW