Microsoft KB Archive/166941

= PRB: DblClick Event Fires After Keystroke Followed by Space =

Article ID: 166941

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q166941



SYMPTOMS
In Visual FoxPro 3.0x, 5.0x, and 6.0, the DBLCLICK event of a LISTBOX triggers after any keystroke followed by space. This can cause a problem when performing an incremental search on a search string that has spaces in between.



STATUS
This behavior is by design.



MORE INFORMATION
The DBLCLICK event should only trigger if a double mouse click is performed.

Steps to Reproduce Behavior
 Create a new form. Add a list box to the form. Set the RowSourceType property to 1 (Values), and RowSource to "AB, A B".  Put the following code in the list box DBLCLICK event: WAIT WINDOW "DblClick"  Save and run the form.

Try to find line "A B" using incremental search, for example, type A, then . The Wait window appears at the upper-right corner.

NOTE: Even if you do not have code for DBLCLICK event, there is no way to search for strings with spaces inside.

Keywords: kbprogramming kbprb KB166941

-

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

© Microsoft Corporation. All rights reserved.