Hello Bruce and all others,
my intention is to make my webclient sending a final request to the server, reporting that it is now shuting down. The webserver holds a list of active clients with Active Since / Last Activity / Idle in Minutes for the Admin to see. whether he can run the update-installer or has to phone to the user to close down.
However, when I call this liitle ROUTINE in the first embed of ThisWindow.Kill, right before WebClient.Kill, then it does not get performed. I know that this routine works okay, because I can call it successfully from a simple ?Button.
Now I could use this ?Button to mimic a ?Close, but this would not help, if the user presses that [X] in the top right corner. Same with the MainMenus E&xit.
A (likely dirty) solution would be, to prohibit ThisWindow.Kill in general and only allow it under a specific condition. That condition could be set within this ?Button, once that webrequest was done.
Does have anyone an idea, how to achieve that?
Or have an even better, since cleaner idea?
tia
Wolfgang