[AccessD] Disable Control Box with Form Maximized?

Mike & Doris Manning mikedorism at verizon.net
Thu Sep 1 10:42:04 CDT 2005


You have a couple of options...

1) Set the Control Box property of the form to False so the exit button
doesn't show.  The only problem with this approach is that you lose the
min/max buttons.

2) Call the code behind your Exit button from the Form_Unload event.  This
code runs when the form is closed and before the form is removed from
memory.  Unlike the Form Close Event, the Form Unload Event can be
cancelled.

Order of events when a form closes (Acces97 and up)...

BeforeUpdate -> Unload -> Deactivate -> Close

Doris Manning
mikedorism at verizon.net





More information about the AccessD mailing list