Event when Exit application from SwitchBoard

aymanmb

Registered User.
Local time
Today, 15:25
Joined
Jan 28, 2007
Messages
96
I have a switchboard with an exit button to exit the application. I want to add an event so it executes when user exit the application from the switchboard.

how to do that.

or how can I access the procdure for the application exit attach the event to
 
if you are using the switchboard wizard, the wizard automatically handles the exist app

if not, look at the code generated by that switchboard to see how exit app is handled
 
You can always look at the code generated by any wizard. It is one of the property lists for any control to show you the events. if you note that [Event Procedure] is stored for the event, double-clicking that property will bring up the code page to show what was generated.

Hint: Using the wizards to build things and then looking at the code they built is one of the easiest ways to see a direct, no-nonsense set of minimalist VBA code to do whatever that control does. I.e. a good learning method.
 

Users who are viewing this thread

Back
Top Bottom