This documentation is archived and is not being maintained.

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
public Control GetNextControl(
 Control ctl,
 bool forward
public: Control* GetNextControl(
 Control* ctl,
 bool forward
public function GetNextControl(
   ctl : Control,
 forward : Boolean
) : Control;


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

Return Value

The next Control in the tab order.


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