TabControl.OnKeyDown Method (KeyEventArgs)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Raises the KeyDown event.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected override void OnKeyDown(
	KeyEventArgs ke
)

Parameters

ke
Type: System.Windows.Forms.KeyEventArgs

A KeyEventArgs that contains the event data.

The TabControl control enables the user to use the keyboard to switch between TabPage controls. The following table describes how the TabControl switches between the selected TabPage controls, depending on which keys are pressed.

Key

Description

Control + Tab

Selects the next TabPage.

Control + Shift + Tab

Selects the previous TabPage.

Control + PageDown

Selects the next TabPage.

Control + PageUp

Selects the previous TabPage.

.NET Framework
Available since 1.1
Return to top
Show: