O
Oenone
I'm using a TabControl to facilitate a wizard-style form, using some of the
techniques described here:
http://www.codeproject.com/cs/miscctrl/WizardTab.asp
For the most part I have this working very nicely, and using the information
in the comments below the article I've managed to completely hide the tab
headers without resorting to "drawing over" them.
What I've not managed to solve however is the fact that the user can press
Ctrl+Tab (and Ctrl+Shift+Tab) to cycle forwards (and backwards) through the
tabs, completely outside of the control of my application. I obviously want
the wizard to be in complete control of which tab is being displayed at all
times.
Can anyone suggest a way that I could intercept this keyboard combination
and prevent it from affecting the tabcontrol? I've tried putting code into
the TabControl_KeyDown event and setting the e.Handled property to True, but
although the code does get called, the tab control has already changed tab
by the time the event is fired.
My thanks in advance,
techniques described here:
http://www.codeproject.com/cs/miscctrl/WizardTab.asp
For the most part I have this working very nicely, and using the information
in the comments below the article I've managed to completely hide the tab
headers without resorting to "drawing over" them.
What I've not managed to solve however is the fact that the user can press
Ctrl+Tab (and Ctrl+Shift+Tab) to cycle forwards (and backwards) through the
tabs, completely outside of the control of my application. I obviously want
the wizard to be in complete control of which tab is being displayed at all
times.
Can anyone suggest a way that I could intercept this keyboard combination
and prevent it from affecting the tabcontrol? I've tried putting code into
the TabControl_KeyDown event and setting the e.Handled property to True, but
although the code does get called, the tab control has already changed tab
by the time the event is fired.
My thanks in advance,