Control.SelectNextControl Method

Activates the next control.

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

public bool SelectNextControl (
	Control ctl,
	bool forward,
	bool tabStopOnly,
	bool nested,
	bool wrap
public boolean SelectNextControl (
	Control ctl, 
	boolean forward, 
	boolean tabStopOnly, 
	boolean nested, 
	boolean wrap
public function SelectNextControl (
	ctl : Control, 
	forward : boolean, 
	tabStopOnly : boolean, 
	nested : boolean, 
	wrap : boolean
) : boolean



The Control at which to start the search.


true to move forward in the tab order; false to move backward in the tab order.


true to ignore the controls with the TabStop property set to false; otherwise, false.


true to include nested (children of child controls) child controls; otherwise, false.


true to continue searching from the first control in the tab order after the last control has been reached; otherwise, false.

Return Value

true if a control was activated; otherwise, false.

The SelectNextControl method activates the next control in the tab order if the control's Selectable style bit is set to true in ControlStyles, it is contained in another control, and all its parent controls are both visible and enabled.

The Windows Forms controls in the following list are not selectable. Controls derived from controls in the list will also not be selectable.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0