chemram
01-02-2001, 02:12 AM
How can I stop my DB scrolling through records when the wheel on a scroll mouse is used?
|
View Full Version : Scroll Mouse Record browsing chemram 01-02-2001, 02:12 AM How can I stop my DB scrolling through records when the wheel on a scroll mouse is used? skiphooper 01-02-2001, 11:36 AM Hi, Go in your control pannel and select the mouse, then de-select turn the weel on. That should do it. Skip chemram 01-02-2001, 01:25 PM Thanks Skip, But I was looking for a way just to isolate this function from within Access, so normal mouse functions still exist... skiphooper 01-03-2001, 05:22 AM chemram, Sorry I don't have a fix for your problem, but I found Microsoft's kb article Q192008. Don't know if you have A97 or A2K, this article is for A97. Hope it helps Skip skiphooper 01-03-2001, 02:59 PM try this ----------------------------------------- Private Const SPI_SETWHEELSCROLLLINES = 105 Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByRef lpvParam As Any, ByVal fuWinIni As Long) As Long Private Sub DisableScrolling() SystemParametersInfo SPI_SETWHEELSCROLLLINES, 0, 0, 0 End Sub -------------------------------------------------------------------------------- That first 0 after SPI_SETWHEELSCROLLLINES is the number of lines to scroll. Setting it to 0 disables scrolling. The default value is 3, so that's probably what you should set it back to when you want to re-enable the scrolling. -------------------------------------------------------------------------------- Private Sub EnableScrolling() SystemParametersInfo SPI_SETWHEELSCROLLLINES, 3, 0, 0 End Sub ----------------------------------------- ----------------------------------------- I got this from a VB site.Don't know if this will work in access HTH Skip |