Menu Bars

D

Dmac

If you create a new menu bar and replace the default Access menu bar, and
have the form open maximized, there are restore/maximixe icons in the top
right corner of the form. Is there anyway to remove these icons?

I use the Call fActivateControlBox(False) function so there isn't a control
box on the container of Access, but there are still the restore/maximize
icons from the menu bar.

The user tends to click the restore icons thinking they are minmizing the
window, but they are only restoring the window. Then the icons are gone and
the window cannot be maximized again.

Thanks in advance.
 
P

Pieter Wijnen

No, but you can put code in The Form_Resize Event

Private Sub Form_Resize
If Not IsZoomed(Me.hWnd) Then ShowWindow Me.hWnd, 3

End Sub

In a Global Module Put:
Public Declare Function IsZoomed Lib "User32" (ByVal hWnd As Long) As Long
Public Declare Function ShowWindow Lib "User32" (ByVal hWnd As Long, ByVal
NewState As Long) As Long


HtH

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