Microsoft KB Archive/100127

= ACC: List Box Controls on Forms Painted Incorrectly =

Article ID: 100127

Article Last Modified on 5/6/2003

-

APPLIES TO


 * Microsoft Access 1.0 Standard Edition
 * Microsoft Access 1.1 Standard Edition
 * Microsoft Access 2.0 Standard Edition
 * Microsoft Access 95 Standard Edition

-



This article was previously published under Q100127



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



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



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: kbbug kbusage KB100127

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.