Hello,
Welcome to Visual WebGui!
As all application that run over the VWG framework are basically web-applications and there is no browser standard for notifying the server that the browser has been closed, the user refreshed the page or that the user moved to a different website, we have no specific way of notifying you which of these three specific events occurred.
In version 6.1.1 we have added an event that is fired when any one of the three previously actions has occurred. You can access this event like so:
public void MyMethod()
{
Application.ThreadSuspend += new EventHandler(Application_ThreadSuspend);
}
void Application_ThreadSuspend(object sender, EventArgs e)
{
((IContextTerminate)VWGContext.Current).Terminate(true);
}
Regards,
Ori Cohen
The Visual WebGui team |
|