Scrolling List Box Causes Click Event and Change in Selection

ID: Q94834


The information in this article applies to:
  • Microsoft Visual Basic Standard and Professional Editions for MS-DOS, version 1.0


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.


MORE INFORMATION

Steps to Reproduce Problem

  1. Start VBDOS.EXE.


  2. From the File menu, choose New Form.


  3. Place a list box control on the new form.


  4. From the File menu, choose Exit, and save all changes.


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


  6. Add the following code to the List1_Click event procedure:
    
          Sub List1_Click ()
             Print "CLICK"
          End Sub 


  7. Run the program.


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


Additional query words: VBmsdos buglist1.00 1.00

Keywords :
Version : MS-DOS:1.0
Platform : MS-DOS
Issue type :


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