Don't reinvent the wheel, use InGrid (found here in downloads). Been using it for a long time with much success, but I have modified it over time to make it handle some keystrokes it wasn't handling and change the way it showed the user the search string, and some other misc. stuff. But it's a great place to start from.
>Hello
>
>I am implementing incremental search in a Grid's textbox, the textbox is read only and the textbox's keypressed event handles the search.
>When I trap the keys strokes, I issue a NODEFAULT and RETURN commands, but still keep receiving the message "The control is read-only" in the status bar or "wait window"
>
>How can avoid this message?
>
>Thanks,
>
>Juan