>>Hello Sirs, >> >>I am currently trying to implement automatic logout in my VB 6.0 application (running under Windows 7). What I am struggling with is how to force a message box to close if my logout time has been exceeded, same thing goes for modal forms as well. >> >>Thank you > >This should be easy to convert to VB code > >http://berezniker.com/content/pages/visual-foxpro/check-if-exe-running-and-optionally-terminate-it