i have an application in which u display first a login window. AFter that a form is displayed. now you can exit the app by clicking the exit command button on the form which in return displays a vbmodal dialog box for confirming the response. NOw i want to display the initialy displayed login window(lock my application) in case there is no response to the dialog box or the window remains inactive for more than 45 seconds.
HOw can i achieve that. Please reply ASAP.

Thanks in advance.

Once the modal form is loaded, add a timer to the forms initialisation sub. Once the timer expires set the program to exit. Should be pretty straight forward, but if you get stuck - shout!