Group:  Microsoft Access ยป microsoft.public.access.formscoding
Thread: Disable keystrokes in an unbound combobox ?

Geek News

Disable keystrokes in an unbound combobox ?
Jay 11/23/2008 2:28:00 AM
Hi -
Access 2003/WinXP: I have an unbound combobox (cboList) on a form and it
gets properly populated in VBA code.

Is there a design-time method to limit the user's interaction with the
combobox to 'mouse only' (no keystrokes) ? If not, how would you disable
keystrokes in a KeyDown event procedure?

Thanks,
Jay
Re: Disable keystrokes in an unbound combobox ?
"Albert D. Kallal" <PleaseNOOOsPAMmkallal[ at ]msn.com> 11/23/2008 3:22:45 AM
I am not sure why you want to discourage keyboard skills....

However, you can disable all keys for the combo box with the keydown event
via:

Private Sub Combo0_KeyDown(KeyCode As Integer, Shift As Integer)

KeyCode = 0

End Sub



--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal[ at ]msn.com


Re: Disable keystrokes in an unbound combobox ?
Jay 11/23/2008 5:12:00 AM
Thank you Albert. Your suggestion worked perfectly. Much appreciated.

------
Jay

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net