Hello,
I'm using an UltraTabControl to manage different UserControls in an Application. The switching between the tabs is mostly controlled by the application. Therefore I'm searching a way to hide the tab header. Is this possible?
Thank you!
Frank
Hi,
Thanks a lot !!!
I've tried and that code works :
public partial class UltraTabControlKM : UltraTabControl{ private Keys fKeysTabControl = Keys.Control | Keys.Tab; private Keys fKeysTabControlShift = Keys.Control | Keys.Tab | Keys.Shift; public UltraTabControlKM() { InitializeComponent(); } public UltraTabControlKM(IContainer container) { container.Add(this); InitializeComponent(); } //Surcharge pour corriger le bug protected override bool ProcessDialogKey(Keys keyData) { if (keyData == fKeysTabControl || keyData == fKeysTabControlShift) { return false; } else { return base.ProcessDialogKey(keyData); } }}
ps : Starfox was so good on GC...
Hello ,
If you cannot use the latest service release of Infragistics then you could try the following workaround:
class UltraTabControlKM: UltraTabControl
{
Keys fKeysTabControl = Keys.Control | Keys.Tab ;
Keys fKeysTabControlShift = Keys.Control | Keys.Tab | Keys.Shift ;
public UltraTabControlKM(IContainer container)
container.Add(this);
}
protected override void OnKeyDown(KeyEventArgs e)
if (e.KeyData == fKeysTabControl || e.KeyData == fKeysTabControlShift)
return;
base.OnKeyDown(e);
Please let me know if you have nay further questions.
Hi, do you have a solution for that ?
Hi, we will not have the last version of Infragistics before many weeks and I try the overriding method but I don't know how to identify the ctrl+Tab or ctrl+shift+tab in System.Windows.Forms.Keys format :
Thanks.
I recently looked into this issue and implemented a fix which will be available in the next hotfix. In the meantime, you can work around this issue by using a derived UltraTabControl and overriding ProcessDialogKey. If the passed in key is Ctrl+Tab or Ctrl+Shift+Tab, return False.