VB.NET - Retrieve Mouse Settings



Cheat Sheet to retrieve several mouse settings.

'Assembly: System.Drawing.dll
'Assembly: System.Windows.Forms.dll

'Namespace: Microsoft.VisualBasic
'Namespace: System.Windows.Forms

Dim swapped As Boolean = My.Computer.Mouse.ButtonsSwapped
Dim hasWheel As Boolean = My.Computer.Mouse.WheelExists
Dim scrollLines As Integer = My.Computer.Mouse.WheelScrollLines
Dim buttons As Integer = SystemInformation.MouseButtons
Dim hoverSize As Size = SystemInformation.MouseHoverSize
Dim hoverTime As Integer = SystemInformation.MouseHoverTime
Dim speed As Integer = SystemInformation.MouseSpeed
Dim delta As Integer = SystemInformation.MouseWheelScrollDelta
Dim nativeWheel As Boolean = SystemInformation.NativeMouseWheelSupport

Share |

 Cant find the page you are looking for?
 Help us to improve by adding the content that you are looking for.
 Leave a feedback
 We look forward to hear your comments and feedback.