BUG: An Empty ListBox Generates a DoubleClick EventLast reviewed: February 10, 1998Article ID: Q180833 |
The information in this article applies to:
SYMPTOMSDouble-clicking on an empty ListBox fires the DoubleClick event. The DoubleClick event is not supposed to fire when the ListBox is empty.
RESOLUTION
To work around the issue, add code to the DoubleClick event to detect an empty ListBox, and then exit the procedure as follows:
Private Sub List1_DblClick() If List1.ListCount = 0 Then Exit Sub MsgBox "doubleclick" 'this line won't execute when empty. End Sub STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. Keywords : vb5all vbce Version : WINDOWS:1.0 Platform : WINDOWS Issue type : kbbug Solution Type : kbpending |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |