Display combobox list when getting focus (vb.net)

When we click on the combobox drop-down control in our window form, it automatically displays a list.

But when we click the tab and go to this control from the keyboard, it does not automatically display the list. So in another, to automatically show the list when receiving focus, what needs to be done?

+3
source share
2 answers

Set the DroppedDown property for the combo box to true.

    Private Sub myComboBox_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles myComboBox.GotFocus
 myComboBox.DroppedDown= true
    End Sub
+7
source

I would like to mention here.

I used the Enter event to show a dropdown with DroppedDown = true,

- combobox, , .

- .

0

Source: https://habr.com/ru/post/1753670/


All Articles