Export (0) Print
Expand All
Expand Minimize
2 out of 4 rated this helpful - Rate this topic

Control.SelectNextControl Method

Activates the next control.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

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

Parameters

ctl

The Control at which to start the search.

forward

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

tabStopOnly

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

nested

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

wrap

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.