My.Computer.Mouse 개체

업데이트: 2007년 11월

로컬 컴퓨터에 설치된 마우스의 형식과 구성에 대한 정보를 가져오기 위한 속성을 제공합니다.

설명

My.Computer.Mouse 개체는 마우스 단추의 기능이 바뀌었는지 여부, 마우스 휠에 대한 자세한 정보 등 컴퓨터의 마우스에 대한 정보를 찾는 방법을 제공합니다.

예제

이 예제에서는 My.Computer.Mouse.WheelExists 및 My.Computer.Mouse.WheelScrollLines 속성을 사용하여 마우스에 스크롤 휠이 있는지와 마우스 휠을 회전할 때 스크롤되는 범위를 결정합니다.

If My.Computer.Mouse.WheelExists Then
    Dim lines As Integer = My.Computer.Mouse.WheelScrollLines
    If lines > 0 Then
        MsgBox("Application scrolls " & _
            lines & " line(s) for each wheel turn.")
    Else
        MsgBox("Application scrolls " & _
            (-lines) & " page(s) for each wheel turn.")
    End If
Else
    MsgBox("Mouse has no scroll wheel.")
End If

요구 사항

네임스페이스:Microsoft.VisualBasic.Devices

클래스:Mouse

어셈블리: Visual Basic 런타임 라이브러리(Microsoft.VisualBasic.dll)

프로젝트 형식별 사용 가능 여부

프로젝트 형식

사용 가능 여부

Windows 응용 프로그램

클래스 라이브러리

콘솔 응용 프로그램

Windows 컨트롤 라이브러리

웹 컨트롤 라이브러리

아니요

Windows 서비스

웹 사이트

아니요

참고 항목

참조

My.Computer.Mouse 개체 멤버

My.Computer 개체

Microsoft.VisualBasic.Devices.Mouse