Hello,
How can i make a combobox to take values strictly from the list? I don't want the user to be able to add its own values.
Thank you.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
DealyPosted Sep 11, 2009, 4:59 AM
The problem is that if the user searches for the word "Hello" and types "He" it can only goes to "H". How can i make it goes with more than one letters?
Master BillaPosted Sep 10, 2009, 12:44 PM
Just make code,
comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
Thank you
Roei BarPosted Sep 10, 2009, 8:02 AM
cmb.DataSource = List
cmb.DataMemeber = "Name";
cmb.DataValueText = "Value";
Kirtan PatelPosted Sep 10, 2009, 7:59 AM
please don't forget to mark "Do you like answer" it will give me some credits :)
or By Code you can Do it By Following Code
comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;