Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing a form

Status
Not open for further replies.

GPIT

Programmer
Nov 7, 2003
3
US
Is there any code that I can put in an event on a form to prevent the user from closing the form?
Thanks.
 
Dependant upon how savvy your users are, you can just remove the control buttons from the form in your form design and they'll simply leave it alone most of the time.
 
Hi!

In the unload event of the form:
[tt]cancel=true[/tt]

But surely you wan't them to be able to close it on some conditions?

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top