Dan Waters
dwaters at usinternet.com
Thu Nov 29 08:04:28 CST 2007
I just looked at one of my forms - try this: Control Box = No Min Max Buttons = None Close Button = No Whats This Button = No This combination of property settings keeps everything not visible on my forms (but I always have a separate Close button). However, I haven't used maximized forms so I haven't seen what that would do. Good Luck Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, November 29, 2007 7:45 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] API: Remove Close button from maximized forms The code actually removes the restore window button. The problem with turning off the close button is that when a form is maximized in code the button reaapears. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, November 28, 2007 5:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] API: Remove Close button from maximized forms You can turn the Close button for forms on or off using each form's property sheet. I turn it off for every form. Same for Min/Max. Perhaps that would work . . . Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, November 28, 2007 3:07 PM To: Access Developers discussion and problem solving Subject: [AccessD] API: Remove Close button from maximized forms I am using the API: Remove Close button from maximized forms from the Access Web website.(www.mvps.org/access/api/aqpioo22.htm) It works great on the first form in the DB that opens. On subsequent forms the result is not as good. The form opens to full size with the blue bar across the top. I use the following lines of code to run the function from the on open event. DoCmd.Restore DoEvents MaximizeRestoredForm Me I have also tried it explicitly naming the form with the same result. Thanks for your ideas. Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com