Control.Select 메서드

정의

컨트롤을 활성화합니다.

오버로드

Select(Boolean, Boolean)

자식 컨트롤을 활성화합니다. 또한 필요에 따라 컨트롤을 선택할 탭 순서의 방향을 지정합니다.

Select()

컨트롤을 활성화합니다.

설명

이 메서드는 Select 컨트롤의 ControlStyles.Selectable 스타일 비트가 다른 컨트롤에 true포함되고 모든 부모 컨트롤이 표시되고 활성화된 경우 컨트롤을 활성화합니다.

다음 목록의 Windows Forms 컨트롤을 선택할 수 없습니다. 목록의 컨트롤에서 파생된 컨트롤도 선택할 수 없습니다.

Select(Boolean, Boolean)

자식 컨트롤을 활성화합니다. 또한 필요에 따라 컨트롤을 선택할 탭 순서의 방향을 지정합니다.

protected:
 virtual void Select(bool directed, bool forward);
protected virtual void Select (bool directed, bool forward);
abstract member Select : bool * bool -> unit
override this.Select : bool * bool -> unit
Protected Overridable Sub Select (directed As Boolean, forward As Boolean)

매개 변수

directed
Boolean

선택할 컨트롤의 방향을 지정하려면 true이고, 그렇지 않으면 false입니다.

forward
Boolean

탭 순서에서 앞으로 이동하려면 true이고, 뒤로 이동하려면 false입니다.

설명

forward 매개 변수는 directed 컨테이너 스타일 컨트롤에서 사용됩니다. 매개 변수를 directed 설정 true하면 매개 변수가 forward 평가되어 선택할 컨트롤을 결정합니다. 설정true되면 forward 탭 순서의 다음 컨트롤이 선택됩니다. 이때 false탭 순서의 이전 컨트롤이 선택됩니다.

추가 정보

적용 대상

Select()

컨트롤을 활성화합니다.

public:
 void Select();
public void Select ();
member this.Select : unit -> unit
Public Sub Select ()

예제

다음 코드 예제에서는 선택한 경우 지정된 Control된 선택 합니다.

public:
   void ControlSelect( Control^ control )
   {
      
      // Select the control, if it can be selected.
      if ( control->CanSelect )
      {
         control->Select(  );
      }
   }
public void ControlSelect(Control control)
{
   // Select the control, if it can be selected.
   if(control.CanSelect)
   {
      control.Select();
   }
}
Public Sub ControlSelect(control As Control)
   ' Select the control, if it can be selected.
   If control.CanSelect Then
      control.Select()
   End If
End Sub

추가 정보

적용 대상