ActionsPane.SelectNextControl Method (Control, Boolean, Boolean, Boolean, Boolean)


Activates the next control.

Namespace:   Microsoft.Office.Tools
Assembly:  Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)

bool SelectNextControl(
	Control ctl,
	bool forward,
	bool tabStopOnly,
	bool nested,
	bool wrap


Type: System.Windows.Forms.Control

The Control at which to start the search.

Type: System.Boolean

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

Type: System.Boolean

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

Type: System.Boolean

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

Type: System.Boolean

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

Return Value

Type: System.Boolean

true if a control was activated; otherwise, false.

This method provides the same functionality as the Control.SelectNextControl method. For more information about using this method, see Control.SelectNextControl.

Return to top