I am using Metro Frame Work Combo Box in my WinForm,
When I try to set cmbCACName.AutoCompleteMode = AutoCompleteMode.Append; it is throwing an exception like 'AutoCompleteMode.None can be used when DropDownStyle is ComboBoxStyle.DropDownList'.
Here is my code
cmbCACName.DropDownStyle = ComboBoxStyle.Simple;
cmbCACName.AutoCompleteMode = AutoCompleteMode.Append;
cmbCACName.AutoCompleteSource = AutoCompleteSource.ListItems;
I could not understand what is happening.
Thanks in advance

Here is the reason for the exception:
In metro framework, the
DropDownStyleproperty of theMetroComboBoxhas been overridden to always setDropDownStyletoDropDownList.In other hand, in
ComboBox, theAutoCompleteModeproperty contains a validation rule, to throw an exception whenever the value ofAutoCompleteModeis set to a value other thanNone.So, the first line of your code is technically setting
DropDownStyletoDropDownList. So in the second line, assigningAppendtoAutoCompleteModewill result in an exception.MetroComboBox.DropDownList
ComboBox.AutoCompleteMode