Hello,

VS 2008 WM 5.0.

I have an application and I want to shutdown a server that the mobile is connected to, to release all resources. This has to be done when the program exits.

However, I am not sure where to put the function call 'drvShutDown()'

Would the shutdown occur after all forms are closed. In which case I could put the function in the closed_event of the forms.

For example my startup is form1. However, the program has many forms (form2, form3, etc).

So where would I put my call to drvShutDown. Would this be in the startup form?

Many thanks for any advice,

Steve