PrintPreviewDialog.AcceptButton 속성

정의

사용자가 Enter 키를 누를 때 클릭되는 폼의 단추를 가져오거나 설정합니다.

public:
 property System::Windows::Forms::IButtonControl ^ AcceptButton { System::Windows::Forms::IButtonControl ^ get(); void set(System::Windows::Forms::IButtonControl ^ value); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.IButtonControl AcceptButton { get; set; }
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.IButtonControl? AcceptButton { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.AcceptButton : System.Windows.Forms.IButtonControl with get, set
Public Property AcceptButton As IButtonControl

속성 값

IButtonControl

폼의 적용 단추로 사용할 단추를 나타내는 IButtonControl입니다.

특성

설명

이 속성은 이 클래스와 관련이 없습니다.

이 속성을 사용 하면 사용자가 애플리케이션에서 ENTER 키를 누를 때 발생 하는 기본 동작을 지정할 수 있습니다. 이 속성에 할당된 단추는 현재 폼에 있거나 IButtonControl 현재 양식의 컨테이너 내에 있어야 합니다.

예를 들어 이 속성을 사용하면 사용자가 마우스로 수락 단추를 수동으로 클릭하는 대신 Enter 키를 누를 수 있도록 하여 간단한 폼을 빠르게 탐색할 수 있습니다.

양식에서 현재 선택한 컨트롤이 Enter 키를 가로채서 처리하는 경우 수락 단추가 활성화되지 않을 수 있습니다. 예를 들어 여러 줄 텍스트 상자 컨트롤을 선택하면 Enter 키를 눌러 컨트롤에 새 줄 문자를 삽입할 수 있습니다.

적용 대상

추가 정보