combo box editing

TboXx
03-11-2004, 07:00 PM
how do i make sure a combo box isnt edited, but you can select from the list?,
Thanks:confused:

Bljashinsky
03-11-2004, 07:12 PM
Make its locked property set to true.

TboXx
03-11-2004, 07:13 PM
if i lock it, then it wont let me select any thing in the combo box

mrjeffy321
03-11-2004, 07:18 PM
set the combo box to style 2, dropdown list.
that will allow the use to only select items from the list.

TboXx
03-11-2004, 07:22 PM
ahhh thats better :)

Byam
03-11-2004, 07:24 PM
Would this work also?

Private Sub Combo1_KeyPress(KeyAscii As Integer)
KeyAscii = 0
End Sub

Gilad_r
03-11-2004, 07:33 PM
no, you can still paste text with the mouse...

Gilad_r
03-11-2004, 07:36 PM
you know what it will work, because you can't press enter...
but if you don't want text at all, then still no.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum