BUG: Valid Method Does Not Fire in Combo Box

Last reviewed: April 25, 1997
Article ID: Q149608
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b, 5.0, 5.0a

SYMPTOMS

The Valid method code of a combo box does not fire when the Style property is set to 2 - Dropdown List.

WORKAROUND

Set the Style property of the combo box to 0 - Dropdown Combo.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Setting the Style property to 0 - Dropdown Combo is not always the best interface solution. Certain style features of the Dropdown List do not exist in the Dropdown Combo style. One major difference between these two styles is that the Dropdown List is read-only while the Dropdown Combo allows the user to type in the text area and possibly add new entries to the list. For the read-only feature, use the KeyPress event to trap for keys being pressed while the combo box object has the focus.

Steps to Reproduce Problem

  1. Create a new form. Add a combo box and text box. Change the Style property of the combo box to 2 - Dropdown List. Place a WAIT WINDOW command in the combo box Valid method.

  2. Save changes to the form, and run the form. Make sure the tab order is set so the combo box is the first object. Press the TAB key to move out of the combo box to the next field. Notice the Valid method of the combo box does not fire.


KBCategory: kbprg kbbuglist
KBSubcategory: FxprgGrid vfoxwinbuglist3.00 buglist3.00b buglist5.00
Additional reference words: 5.00 3.00 3.00b
Keywords : buglist3.00 buglist3.00b buglist5.00 FxprgGrid vfoxwin vfpbug5.0a kbprg kbbuglist
Version : 3.0 3.0b 5.0 5.0a
Platform : WINDOWS
Issue type : kbbug


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 25, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.