Hi
does anyone here have any idea on how to prevent the combobox to dropdown when the user click on the combobox button?
i tried to use the following code but it does not seems to do what i want:
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Sub MultiComboBox_DropDown(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.DropDown
Const CB_SHOWDROPDOWN = &H14F
SendMessage(combobox.Handle.ToInt32, CB_SHOWDROPDOWN, True, 0)
End Sub
Thanks




Reply With Quote