View Full Version : Prevent User Exiting Form Via Task Bar


jwindon
01-13-2002, 11:33 AM
Does anyone know how to prevent a form user from exiting a form via the task bar (right click..close)?

I need to confirm if the user wants to save their changes, but I don't want to use the OnClose event because I have the form stay open for other purposes. Also, the OnCurrent event is not suitable.

The form is a batch entry form and is set to data entry = yes.


Thanks in advance.

Emohawk
01-14-2002, 04:44 AM
You could always just change the form to modual so the user can't click outside of the form.
You could always have a try at catching the application close event through the API. I haven't tried this myself... the above usually is enough.

[This message has been edited by Emohawk (edited 01-14-2002).]