Partager via


Control.GetNextControl(Control, Boolean) Méthode

Définition

Récupère le contrôle suivant vers l’avant ou vers le retour dans l’ordre de tabulation des contrôles enfants.

public:
 System::Windows::Forms::Control ^ GetNextControl(System::Windows::Forms::Control ^ ctl, bool forward);
public System.Windows.Forms.Control GetNextControl(System.Windows.Forms.Control ctl, bool forward);
public System.Windows.Forms.Control? GetNextControl(System.Windows.Forms.Control? ctl, bool forward);
member this.GetNextControl : System.Windows.Forms.Control * bool -> System.Windows.Forms.Control
Public Function GetNextControl (ctl As Control, forward As Boolean) As Control

Paramètres

ctl
Control

Pour Control commencer la recherche.

forward
Boolean

true pour effectuer une recherche vers l’avant dans l’ordre de tabulation ; false pour effectuer une recherche vers l’arrière.

Retours

Control Suivant dans l’ordre de tabulation.

Remarques

La GetNextControl méthode dépend de l’ordre de tabulation. Pour effectuer une itération dans tous les contrôles d’un formulaire, y compris les contrôles imbriqués, utilisez la Controls propriété. Pour obtenir ou définir le contrôle actif d’un contrôle conteneur, utilisez la ActiveControl propriété.

S’applique à

Voir aussi