There's no direct property to do that, BUT...
You can check the lenght of the text in the EditBox of the ComboBox and if it is 4 then don't allow the user to enter anything else:
Put this on ComboBox KeyPress event:
------------------Code:Private Sub Combo1_KeyPress(KeyAscii As Integer) If Len(Combo1.Text) >= 4 And KeyAscii <> vbKeyBack Then KeyAscii = 0 End If End Sub
Serge
Software Developer
[email protected]
[email protected]
ICQ#: 51055819




Reply With Quote