Re: Combobox: WM_SETTEXT doesn't work while Sendkeys works ???

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Greg Wilson" <GregWilson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote...
PROBLEM:

As mentioned, the above method works except for comboboxes. The values paste
but the *.exe acts blind to them and they don't get added to the *.exe's
database when the next record is added during the loop. Evidently, a
requisite event doesn't fire.


Have you tried using the combobox messages? If the item is already in the
combobox list, and you need to select fom the list, try CB_FINDSTRINGEXACT. If
you need to add the item, try CB_ADDSTRING.

David


.