I have some code in the constructor of a class, which is checking that a file exists on the network.
If the file exists, fine.. if not, it enters a loop and retries until the user clicks cancel. At which point I want the application to exit.
So in my code I have
But this is allowing the next line of code from the form to execute...
Is there any way to stop this happening?