kshadow22

Get Mouse Double Click Time Visual Basic

Jun 30th, 2015
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Get Mouse Double Click Time
  2.  
  3. 'Add a module to your project (In the menu choose Project -> Add Module, Then click Open)
  4. 'The example will get the double click time in milliseconds. 1000 milliseconds=1 second.
  5. 'Insert this code to the module :
  6.  
  7. Declare Function GetDoubleClickTime Lib "user32" () As Long
  8.  
  9. 'Insert the following code to your form:
  10.  
  11. Public Class Form1
  12.     Dim s As String
  13.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  14.         s = GetDoubleClickTime
  15.         MsgBox(s)
  16.     End Sub
  17. End Class
RAW Paste Data