Retrieves the next control forward or back in the tab order of child controls.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Function GetNextControl( _
ByVal ctl As System.Windows.Forms.Control, _
ByVal forward As System.Boolean _
) As System.Windows.Forms.Control |
| C# | |
|---|
public System.Windows.Forms.Control GetNextControl(
System.Windows.Forms.Control ctl,
System.bool forward
) |
Parameters
- ctl
- The System.Windows.Forms.Control to start the search with.
- forward
- true to search forward in the tab order; false to search backward.
Return Value
The next
System.Windows.Forms.Control in the tab order.
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