I think I got the answer,
While testing this example: http://demo.wisej.com/ColumnFilter
I disconnected my network cable and I gave this message: “The network is down, retry?”
So if he clicks Yes (or No) while disconnected from the Internet, is there a way to tell him that he is disconnected and pass some instructions?
Nothing happens, if the user regains the connection before the session expires they will find the same messagebox and can continue working. If the session expires, the thread will be aborted and nothing after the MessageBox is executed – unless you have a generic try/catch/finally wrapping the messages box, in which case code in the generic catch or finally will execute.
If you have the try/catch/finally, you can check for ThreadAbortException and ignore it. ThreadAbortExceptions cannot escape the try/catch/finally block. See https://docs.microsoft.com/en-us/dotnet/api/system.threading.threadabortexception?view=netframework-4.7.2
Please login first to submit.