windows forms combobox prevent typing code example Example: c# combobox prevent typing this.comboBoxType.DropDownStyle = ComboBoxStyle.DropDownList;