Tabcontrol, usercontrol and keydown

  • Thread starter Torben Christiansen
  • Start date
T

Torben Christiansen

Hi

I have a usercontrol with a tabcontrol on it and on the tabpages there are
some textboxes. I would like to have Ctrl+Tab change tabpage change one
tabpage forward and Ctrl+Shift+Tab change one tabpage back, just like Word
has it. The Usercontrols Keydown event doesn't get fired, so I have tried to
look a bit at ProcessDialogKeys, ProcessKeyPreview, but I don't seem to get
it to work, any ideas?

Torben
 
C

Chris Cummings

You probably need to catch the forms's keydown event since
the user control/tab control doesn't have focus.
 

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

Top