How to Limit the Number of Characters Typed in a Combo BoxID: Q138499 The information in this article applies to:
SUMMARYYou can limit the number of characters that a user can type into a text box by using the InputMask property. However, this property does not exist for a combo box. This article shows shows by example how to limit the number of characters typed in a combo box by placing code in the KeyPress event.
MORE INFORMATION
Step-by-Step Example1. Create a new form. 2. On the Form menu, click New Property, and name the new property numb. 3. Place a combo box on the form, and set its ControlSource, RowSourceType, 4. Place at least one other control on the form.
5. Place the following code in the KeyPress event for the combo box to Additional reference words: 3.00 VFoxWin mask format
KBCategory: kbprg kbcode kbhowto
KBSubcategory: FxotherGeneral
|
Last Reviewed: October 25, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |