I want to create an asychronus Quit method within my form. Basically, an immediate abort of all processes and close the form. I have a button that calls Close(), but the code that was running when the button was pressed keeps running, and now objects in the form no longer exist and an exception is thrown.
Is there a way to terminate any running method before calling Close()?
Or, is there an elegant way of doing this?
TIA
Is there a way to terminate any running method before calling Close()?
Or, is there an elegant way of doing this?
TIA
Last edited: