Restore Window

D

Dmac

I have several forms that when they are active they are maximized using
DoCmd.Maxized in the On Activate Event. The only issue I am having is there
is the Restore Window in the top right portion of the window. I don't want
the user to have the option to restore the window.

I am using a function to remove the control box from the Access container -
fActivateControlBox(False). I have the properties for Control Box set to
No, Min Max to No, and Close set to No, but I don't see anything for Restore
Window.

Can this be done?
 
P

Pieter Wijnen

Alas, no can remove that
however you can put code in the Resize event to redo the maximize

Put this in a general module
Public Declare Function IsZoomed Lib "user32" ( ByVal hwnd As Long) As Long

And In the Resize event

Private Sub Form_Resize

If isZoomed(me.hwnd) = False Then
DoCmd.Maximize
End If

actually I'd use the ShowWindow API call instead of docmd, but I'm not on a
development computer right now
and I'm of to bed

Pieter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top