I'm attempting to find an item in a combo box using the below code however each time it returns 0 (which is incorrect)? Any suugestions?
Code:Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long Private Const CB_FINDSTRING As Integer = &H14C Dim index as Long index = SendMessage(cboPriceStyles.HostedControl.Handle, CB_FINDSTRING, -1, "Bar")




Reply With Quote