visual studio 2019 turn off combo code example Example: c# combobox lock edit comboBox.DropDownStyle = ComboBoxStyle.DropDownList;