Tabcontrol, usercontrol and keydown

  • Thread starter Thread starter Torben Christiansen
  • Start date 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
 
You probably need to catch the forms's keydown event since
the user control/tab control doesn't have focus.
 
Back
Top