Export (0) Print
Expand All
Expand Minimize

Control.GetNextControl Method

Retrieves the next control forward or back in the tab order of child controls.

[Visual Basic]
Public Function GetNextControl( _
   ByVal ctl As Control, _
   ByVal forward As Boolean _
) As Control
[C#]
public Control GetNextControl(
 Control ctl,
 bool forward
);
[C++]
public: Control* GetNextControl(
 Control* ctl,
 bool forward
);
[JScript]
public function GetNextControl(
   ctl : Control,
 forward : Boolean
) : Control;

Parameters

ctl
The Control to start the search with.
forward
true to search forward in the tab order; false to search backward.

Return Value

The next Control in the tab order.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Control Class | Control Members | System.Windows.Forms Namespace | TabIndex

Show:
© 2014 Microsoft