How to "blur" selected ComboBox in .net window forms?

When you click on the ComboBox, this causes it to be selected in the window. Is there a way to accomplish the javascript equivalent of blur ()

+1


source to share


2 answers


Not directly. However, you can try focusing on the root parent combobox or other element.

comboBox1.TopLevelControl.Focus();

      



or

someControl.Focus();

      

+2


source


I had a similar problem and managed to fix it by disabling and re-enabling dropdowns.



comboBox1.Enabled = false;
comboBox1.Enabled = true;

      

0


source







All Articles