ACC: List Box Controls on Forms Painted Incorrectly

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 : kbusage FmsOthr
Version : 1.0 1.1 2.0 7.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: March 24, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.