Jump to content

MainForm OnDestroy action


artem_niko

Recommended Posts

Good evening!
After successful authorization, through the authorization form, I record in the database about the authorization time.
I need to follow a similar procedure when restarting the application.
There may be 2 options for shutting down:
1. The user has updated the page via the button - this is the right approach, in this case I easily perform the procedure of writing to the database about the time of shutdown;
2. Through F5 (either the refresh button in the browser, or closing the browser through the cross) is the wrong approach, but it can be.
In connection with paragraph 2, I have a question:
Does MainForm or MainModule have an event in which my event about the disconnection time from the database will be executed?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...