We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Keyboard behaviour on TabControl

Thread ID:

Created:

Updated:

Platform:

Replies:

22510 Dec 14,2004 01:02 PM Dec 20,2004 09:29 PM Windows Forms 1
loading
Tags: Tools
H.P. Illum
Asked On December 14, 2004 01:02 PM

How can I change the keyboard response for changing tab in the TabControl. I want it to conform to the Microsoft standard behaviour: Ctrl+PgDn -> Next Tab Ctrl+PgUp -> Previous tab Default behgaviour for the Syncfusion TabControl is the exact opposite.

Administrator [Syncfusion]
Replied On December 20, 2004 09:29 PM

Hi Illum, You could do so by deriving from the TabControlAdv and overriding its ProcessCmdKey method as shown in code below : public class CustomTabControlAdv : TabControlAdv { public CustomTabControlAdv () : base() {} protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == (Keys.Control | Keys.PageUp)) { if (this.SelectedIndex > 0) this.SelectedIndex--; } else if (keyData == (Keys.Control | Keys.PageDown)) { if (this.SelectedIndex < (this.TabCount-1)) this.SelectedIndex++; } return true; } } The complete test sample illustrating this workaround is attached here. We appreciate your continued interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;