• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 929
  • Last Modified:

VB.net ComboBox Force user to select from tge dropdown

Hi

In my VB.net app, I have a Windows Form with a ComboBox on it.
What is the best way to force the user to select an item from the drop down
and not type anything into the box that isn't in the drop down.

Thanks
0
Murray Brown
Asked:
Murray Brown
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
Change the combobox DropdownStyle property to DropDownList:
http://msdn.microsoft.com/en-us/library/system.windows.forms.comboboxstyle.aspx
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks very much
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now