Link to home
Create AccountLog in
Avatar of Victor  Charles
Victor CharlesFlag for United States of America

asked on

Help with controling Combo Box using VB.NET

Hi,

How do I prevent users from entering data in the textbox area of a combobox without disabling the control? I need users to select from the Combobox but don't want them to enter or change the data selected.

Thanks

Victor
Avatar of Karrtik Iyer
Karrtik Iyer
Flag of India image

Set the "DropDownStyle" property of the combobox to DropDownList. This will allow only items in the list to be selected and will not allow any free-form user input.
ASKER CERTIFIED SOLUTION
Avatar of Karrtik Iyer
Karrtik Iyer
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Victor  Charles

ASKER

Thank You.