I have wizard style TabControl where I want to turn off the standard keyboard navigation, that is I don't want the user to change tabs by pressing Ctrl-Tab or Ctrl-Shift-Tab.
I assume if you want to disable the normal keyboard navigation, you will have buttons to allow this kind of navigation. You can keep a flag in your application named something like allowSelectedTabChanging and initialize it to False. Then handle the SelectedTabChanging event. If the flag is set to False, set e.Cancel on the event args to True. In your 'Next' and 'Previous' navigation buttons, set the flag to True, set the new selected tab and the se tthe flag back to False.
Trausti
I apologize Trausti, but I gave you some incorrect information on my original reply. There is a way to disable those keys from navigating the tabs. Place the following code in your Form's constructor after the InitializeComponent call:
for ( int i = this.ultraTabControl1.KeyActionMappings.Count - 1; i >= 0; i-- ){ KeyActionMappingBase mapping = this.ultraTabControl1.KeyActionMappings[ i ];
if ( mapping.KeyCode == Keys.Tab ) { if ( mapping.SpecialKeysRequired == SpecialKeys.ShiftCtrl || mapping.SpecialKeysRequired == SpecialKeys.Ctrl ) { this.ultraTabControl1.KeyActionMappings.Remove( i ); } }}