cjbones said:
Hi,
Thanks for your reply.
I tried setting both enabled and locked to yes but then the user can no
longer select from the combo box list. I would like the user to continue
to
select from the list but not be able to delete the text that appears in
the
combo box for example. Right now they can select or change values already
selected. But they can also edit the displayed text in the combo box. Hope
this explains my problem.
Put the following code in the combo's KeyPress event:
KeyAscii = 0
What this does is to 'throw away' any keypresses from the combo's textbox.
However, this doesn't affect the combo's 'controlling' keypresses. The user
can still drop down the list with Alt-Down Arrow, and may still scroll up &
down and make selection with the Return/Enter key. They just can't type into
the text portion or delete from it.
HTH