다음을 통해 공유


Control.GetNextControl(Control, Boolean) 메서드

정의

자식 컨트롤의 탭 순서에서 다음 컨트롤을 앞으로 또는 뒤로 검색합니다.

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

매개 변수

ctl
Control

Control 검색을 시작할 수 있습니다.

forward
Boolean

true 탭 순서로 앞으로 검색하려면 false 뒤로 검색합니다.

반환

탭 순서의 다음 Control 입니다.

설명

GetNextControl 이 메서드는 탭 순서에 따라 달라집니다. 중첩된 컨트롤을 포함하여 폼의 모든 컨트롤을 반복하려면 이 속성을 사용합니다 Controls . 컨테이너 컨트롤의 활성 컨트롤을 얻거나 설정하려면 이 속성을 사용합니다 ActiveControl .

적용 대상

추가 정보