If you have the window handle (hWnd) of that combobox, then you can use SendMessage API to do that.
------------------Code:Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Private Const CB_SELECTSTRING = &H14D '-------Use this on any event Call SendMessage(ComboboxHwnd, CB_SELECTSTRING, -1, ByVal "Dog")
Serge
Software Developer
[email protected]
[email protected]
ICQ#: 51055819




Reply With Quote