overriding the OnKeyPress event

  • Thread starter Thread starter Nigel Deans
  • Start date Start date
N

Nigel Deans

I need to get my tab control to treat the ENTER key like a TAB key... Is
there an easy way to do this?
 
In the Keydown event, you should be able to intercept the return key and use
"SendKeys" to send the tab key message.
 
Another option is to override the ProcessCmdKey function if you are
subclassing your tab control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top