Hide the max/min and control buttons on maximized form 
Author Message
 Hide the max/min and control buttons on maximized form

Hi there.

In Access 2.0, when a form is maximized, the max/min and control box
displays due to the MDI window, which takes over, even if you specify no
max/min or control box in form properties. Thus the user can maximize,
minimize or close a form, even if we don't want to allow this.

This problem went away in Access 95 (7.0) if you specify a border type
property as No Border for a form, and maximize it.

But, the problem appears to be back in Access 97 - Why?

Besides referencing the MDI window size with API calls and sizing and
moving the form to fit 'just right', as outlined in the knowledge base
Q147152, "Maximizing One Form Maximizes All Forms (7.0).", is there not a
better way with less overhead?

Does anybody else develope forms for their databases which require the
maximum window size, but without max/min and close controls?

Please help...

Ray Silvius



Mon, 04 Oct 1999 03:00:00 GMT  
 Hide the max/min and control buttons on maximized form

Yes,

You can even design forms which cover the entire screen, blocking out all
of Access's main window controls, toolbars, and menus. BE SURE TO HAVE A
CLOSE BUTTON ON THE FORM, or you will be rebooting :)

The trick is to have no caption, scroll bars, record selectors, max/min,
close, or control buttons. Have Pop Up set to yes, and Border Style set to
none. Picture Alignment = Top Left. This last property is what positions
the form, and when Pop Up is set to yes, causes it to cover the menus and
toolbars.

This works in all versions of Access (although, I never tried it in version
1.1)

In Access 95, and 97, You can use a form like this for the menu, and change
the close button to quit after the form is designed. Then by disabling the
Shift By-pass Key on startup, and using Autokeys to redefine certain
function keys, you can effectively keep users from diddling with your
database. A determined hacker will still find a way in though.

--

          Arvin Meyer

      On-Site Solutions


phone:  (804) 973-9140
http://www.esinet.net/cabg/consult/onsite.html
--------------------------------------------------------------------



Quote:
> Hey Ray



> > Does anybody else develope forms for their databases which require the
> > maximum window size, but without max/min and close controls?

> Yeh, I do. And I have posted questions everywhere about this. Ken Getz
> (author, you should get his book) even responded here last week
> specifically to this question. Apparently it has to do with the
commandbar
> object. The API routines I used to use in Access 2.0 to remove the
controls
> don't work anymore, even after conversion to 32-bit.  I guess MS was
using
> the same routines?

> Anyway, I have resorted to the API MoveWindow solution you mentioned. It
> works fine. Once coded, you can forget about it: just include it in your
> form.open.

> John



Thu, 14 Oct 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Q128196 Maximized Form Shows Control Box, Min/Max/Restore Buttons

2. Q128196 Maximized Form Shows Control Box, Min/Max/Restore Buttons

3. Disappearing Min/Max buttons on maximized forms

4. Min/max/close buttons in maximized form

5. min/max/close buttons in maximized form (2)

6. Hide Min/Max Buttons on Form

7. hiding title bars and min/max/close buttons on forms

8. How to hide the maximize/restore and close-button on a maximized form

9. How to hide the maximize/restore and close-button on a maximized form

10. hiding menu, min/max and close buttons


 
Powered by phpBB® Forum Software © phpBB Group