Microsoft KB Archive/164484

= ACC97: Control Box Submenu Reappears After Being Disabled =

Article ID: 164484

Article Last Modified on 1/19/2007

-

APPLIES TO


 * Microsoft Access 97 Standard Edition

-



This article was previously published under Q164484





SYMPTOMS
When you disable the Control Box for a form, the Control Box submenu is disabled also. If you maximize, and then restore a form that has its Control Box disabled, the Control Box submenu will reappear on the restored form if you press the ALT key, and then press the LEFT ARROW key.



RESOLUTION
If you remove the Control Box from a form, do not maximize it because the submenu will be restored if the form is returned to its normal size.



STATUS
Microsoft has confirmed this to be a problem in Microsoft Access 97.



Steps to Reproduce Problem
 Open the sample database Northwind.mdb in Microsoft Access 97. Create an AutoForm based on the Employees table. Switch the form to Design View and change the ControlBox property to No. Save the form as Employees1, and then switch to Form view. Note that the Control Box has been removed from the form.  Switch the Employees1 form to Design view. Add a command button to the form and name it SizeForm. Set the command button's OnClick property to the following event procedure: Private Sub SizeForm_Click

DoCmd.Maximize DoCmd.Restore

End Sub </li> Switch the form to Form view, and click the SizeForm button.</li> Press the ALT key to place the focus on the File menu, and then press the LEFT ARROW key. Note that the Control Box submenu appears.</li></ol>

<div class="references_section">