Retrieves the next control forward or back in the tab order of child controls.
Public Function GetNextControl ( _ ctl As Control, _ forward As Boolean _ ) As Control
public Control GetNextControl( Control ctl, bool forward )
public: Control^ GetNextControl( Control^ ctl, bool forward )
member GetNextControl : ctl:Control * forward:bool -> Control
The GetNextControl method is dependent on tab order. To iterate through all controls of a form, including nested controls, use the Controls property. To get or set the active control of a container control, use the ActiveControl property.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2