Control.GetNextControl Method
.NET Framework 3.0
Retrieves the next control forward or back in the tab order of child controls.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)
Assembly: System.Windows.Forms (in system.windows.forms.dll)
public Control GetNextControl ( Control ctl, boolean forward )
public function GetNextControl ( ctl : Control, forward : boolean ) : Control
Not applicable.
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.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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: