Activates the next control.
Syntax
Visual Basic (Declaration) | |
---|
Public Function SelectNextControl( _
ByVal ctl As System.Windows.Forms.Control, _
ByVal forward As System.Boolean, _
ByVal tabStopOnly As System.Boolean, _
ByVal nested As System.Boolean, _
ByVal wrap As System.Boolean _
) As System.Boolean |
C# | |
---|
public System.bool SelectNextControl(
System.Windows.Forms.Control ctl,
System.bool forward,
System.bool tabStopOnly,
System.bool nested,
System.bool wrap
) |
Parameters
- ctl
- The System.Windows.Forms.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 System.Windows.Forms.Control.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.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also