Add this to the form:
and put this in the button's Click sub:Code:Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" _ (ByVal uAction As Integer, ByVal uParam As Integer, ByRef lpvParam As Object, ByVal fuWinIni As Integer) As Integer Const SPI_SETMOUSESPEED As Integer = 113
The maximum value for the speed is 20.Code:SystemParametersInfo(SPI_SETMOUSESPEED, 0, Integer.Parse(TextBox1.Text), 0)
cheers, BB




Reply With Quote
