Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling Mousewheel record scroll

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Does anyone know how to keep the mousewheel from scrolling records on a form. It's a distributed DB so I can't do it on each machine, needs to be in code. And since I'm already here. How about the page up and page down buttons. Any help is appreciated.
 
Bretton -

The mousewheel sends two different sets of Windows messages (WM_MOUSEWHEEL and MSH_WHEEL, if I recall correctly) to the window procedure. You would have to use some Win32 api calls to sub-class your form and intercept those messages. There ought to be a FAQ about doing this in the VB General forum, but I don't know if it'll apply to MS-Access or not.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top