Microsoft KB Archive/94834

= Scrolling List Box Causes Click Event and Change in Selection =

PSS ID Number: 94834

Article Last Modified on 1/8/2003

-

The information in this article applies to:


 * Microsoft Visual Basic for MS-DOS 1.0

-



This article was previously published under Q94834



SYMPTOMS
Scrolling the items in a list box by using either the mouse or arrow keys can incorrectly change the current selection and cause a Click event. This behavior does not occur in Visual Basic for Windows.



STATUS
Microsoft has confirmed this to be a bug in both the Standard and Professional Editions of Microsoft Visual Basic version 1.0 for MS-DOS. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Problem
 Start VBDOS.EXE. From the File menu, choose New Form. Place a list box control on the new form. From the File menu, choose Exit, and save all changes.  Add the following code to the Form_Load event procedure: Sub Form_Load For I = 1 TO 50 List1.Additem STR$(I) Next I     End Sub   Add the following code to the List1_Click event procedure: Sub List1_Click Print &quot;CLICK&quot; End Sub </li> Run the program.</li> Click the down arrow of the List Box. Notice that the selection changes and a the Click event is fired when you click any of the arrows on the list box.</li></ol>

Additional query words: VBmsdos buglist1.00 1.00

Keywords: KB94834

Technology: kbAudDeveloper kbVB100DOS kbVBSearch kbZNotKeyword3

-

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

© 2004 Microsoft Corporation. All rights reserved.