Computer.Keyboard 속성

정의

현재 누른 키와 같이 키보드의 현재 상태에 액세스하기 위한 속성을 제공하고 현재 창에 키 입력을 보내는 메서드를 제공하는 개체를 가져옵니다.

public:
 property Microsoft::VisualBasic::Devices::Keyboard ^ Keyboard { Microsoft::VisualBasic::Devices::Keyboard ^ get(); };
public Microsoft.VisualBasic.Devices.Keyboard Keyboard { get; }
member this.Keyboard : Microsoft.VisualBasic.Devices.Keyboard
Public ReadOnly Property Keyboard As Keyboard

속성 값

My.Computer.Keyboard 컴퓨터의 개체입니다.

예제

이 예제에서는 이 속성을 사용하여 My.Computer.Keyboard.CtrlKeyDown 컴퓨터의 Ctrl 키를 현재 누르고 있는지 확인합니다.

If My.Computer.Keyboard.CtrlKeyDown Then
    MsgBox("CTRL key down")
Else
    MsgBox("CTRL key up")
End If

설명

이 속성은 개체에 쉽게 액세스할 수 있도록 My.Computer.Keyboard 합니다. 자세한 내용은 개체를 참조 Keyboard 하세요.

프로젝트 유형별 가용성

프로젝트 형식 사용 가능
Windows Forms 애플리케이션 Yes
클래스 라이브러리 Yes
콘솔 애플리케이션 Yes
Windows Forms 컨트롤 라이브러리 Yes
웹 제어 라이브러리 No
Windows 서비스 Yes
웹 사이트 No

적용 대상

추가 정보