1 Replies - 259 Views - Last Post: 17 February 2013 - 03:48 AM Rate Topic: -----

#1 triangulator  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 27
  • Joined: 03-February 13

How can I make ComboBox item to be selected only with dropdown?

Posted 17 February 2013 - 02:54 AM

Currently an item of a combobox can be selected in two ways - either by using the dropdown option or by manually entering the name of the item. However in the latter case upon entering an unexisting item, the SelectedItem propery of the combobox gets changed to null and I need it always to be a not null value. Therefore I want to disable the possibility of entering the name manually in the combobox.
I've looked here: http://msdn.microsof...s.combobox.aspx and in related methods/properties/classes, but couldn't find any such option. How can I do this?

Is This A Good Question/Topic? 0
  • +

Replies To: How can I make ComboBox item to be selected only with dropdown?

#2 Momerath  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1010
  • View blog
  • Posts: 2,444
  • Joined: 04-October 09

Re: How can I make ComboBox item to be selected only with dropdown?

Posted 17 February 2013 - 03:48 AM

Set the DropDownStyle to DropDownList
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1