[AccessD] API: Remove Close button from maximized forms

Kaup, Chester Chester_Kaup at kindermorgan.com
Thu Nov 29 07:44:30 CST 2007


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





More information about the AccessD mailing list