Sponge Bob,
In addition to the other comments.
There are a number of advanced keyboard overrides, unfortunately I don't
have any real good examples of using these, other then they allow you to
intercept the key significantly earlier
then the OnKey* methods, including the Tab key.
I want to say you want to use IsInputChar or IsInputKey to check for a Tab,
if its a Tab returning false will allow the Tab to be handled by your
control. I normally override all the advanced keyboard overrides, watch
(w/Debug.WriteLine) the values coming out to determine which one to actually
use...
*advanced keyboard overrides include: IsInputChar, IsInputKey,
PreProcessMessage, ProcessCmdKey, ProcessDialogChar, ProcessDialogKey,
ProcesKeyEventArgs, ProcessKeyMessage, ProcessKeyPreview, and
ProcessMnemonic.
If I find an example I will post one later...
Hope this helps
Jay
"spongebob-straight pants" <me@asd.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Hi all,
When I press the tab key, I cannot fire the keyup and the keydown or any
keypress events
How then would I capture those events?
Thanks