
Running program on closing of windows nt
Hi
In the Query Unload event of a form U can do this.
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If UnloadMode = vbAppWindows Then
'Do the appropriate thing
End If
End Sub
Cheers
Joseph
Grid Tech - Singapore
Quote:
> I want to run a program that copies a couple of files around on closing of
> windows. How do you get a program to run a closing of windows, Or if the
> program is already running getting it to copy the files when windows tells
> it to close?
> Thanks for any help
> Dean