Selecting an item in comboBox by typing

后端 未结 2 1984
慢半拍i
慢半拍i 2020-12-24 11:01

I\'ve a combobox that has hundreds item in it. User must be able to type the text into the combobox . While the user is typing the text, the item that starting with the type

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-24 11:46

    comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDown;
    comboBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
    comboBox1.AutoCompleteSource = AutoCompleteSource.ListItems;
    

提交回复
热议问题