ACC: List Box Controls on Forms Painted Incorrectly

Last reviewed: May 14, 1997
Article ID: Q100127
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1, 2.0, 7.0

SYMPTOMS

Novice: Requires knowledge of the user interface on single-user computers.

The gray dotted box that surrounds the top row in a list box, indicating no selection, disappears when you scroll down from the top row and minimize the form.

CAUSE

This problem occurs because list box controls on forms are painted incorrectly when the following is true: you minimize and then restore a form whose current control is a list box in which there is no selection and you scroll the top row out of view.

RESOLUTION

Any event that causes the form to repaint, such as pressing the F9 key or selecting an item from the list box, causes the gray dotted box to reappear.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Access versions 1.0, 1.1, 2.0, and Microsoft Access 7.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

  1. Open the sample database Northwind.mdb (or NWIND.MDB in versions 1.x and 2.0).

  2. Create a new, blank form.

  3. Add a list box control to the form and set its RowSource property to Employee List.

  4. Switch to Form view. Note that the first item in the list is surrounded by a gray dotted box.

  5. Scroll down the list until the first item in the list no longer appears.

  6. Minimize the form, and then maximize it.

  7. Scroll up the list until the first item in the list is visible again. Note that the gray dotted box is no longer visible.

  8. Press the F9 key once to force the form to repaint. Note that the gray dotted box reappears around the first item in the list.


Additional query words: caret
Keywords : FmsOthr kbusage
Version : 1.0 1.1 2.0 7.0
Platform : WINDOWS
Hardware : X86
Issue type : kbbug
Resolution Type : Info_Provided


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 14, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.