How To Restrict the User From Entering Data in a Combo Box Control?

DeniseGoodheart
DeniseGoodheart used Ask the Experts™
on
Good Day:

I am using VB.NET 2005.  How do I restrict the user from entering data in a combo box control?  In other words, I want to allow the user to only make a selection from the combo box and not be able to type an entry in the combo box.

Thank You,
Denise
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Retired
Distinguished Expert 2017
Commented:
Set the ComboBox property DropDownStyle to DorpDownList and it will only allow the user to select from the list.

Author

Commented:
Thanks :)
Fernando SotoRetired
Distinguished Expert 2017

Commented:
Not a problem, glad I was able to help. ;=)

Commented:
Can I set this in Access?
Fernando SotoRetired
Distinguished Expert 2017

Commented:
The original question was, "How To Restrict the User From Entering Data in a Combo Box Control?", that was posted in the .Net thread. You can not restrict what a user types in a .Net program by setting some parameter in Access.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial