ACC2000: Control Box Submenu Reappears After Being Disabled

ID: Q207810


The information in this article applies to:



SYMPTOMS

Moderate: Requires basic macro, coding, and interoperability skills.

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 the form. Otherwise, the submenu will be enabled if the form is restored to its normal size.


STATUS

Microsoft has confirmed this to be a problem in Microsoft Access 2000.


MORE INFORMATION

Steps to Reproduce Problem

  1. Open the sample database Northwind.mdb.


  2. Create an AutoForm based on the Employees table.


  3. Switch the form to Design View and change the ControlBox property to No.


  4. Save the form as Employees1, and then switch to Form view. Note that the Control Box has been removed from the form.


  5. Switch the Employees1 form to Design view and add a command button to the form. Name the command button SizeForm.


  6. Set the command button's OnClick property to the following event procedure:


  7. 
    Private Sub SizeForm_Click()
        DoCmd.Maximize
        DoCmd.Restore
    End Sub 
  8. Switch the form to Form view and click the SizeForm button.


  9. 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.



REFERENCES

For more information about maximizing and restoring forms, click Microsoft Access Help on the Help menu, type "Maximize Action, Minimize Action, and Restore Action" in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

Additional query words: prb


Keywords          : kbui kbdta FmsProp 
Version           : WINDOWS:2000
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: May 13, 1999