Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 26th, 2005, 03:05 AM
Authorized User
 
Join Date: Jan 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Disable Mouse Wheel

Any help on disabling Mouse wheel From Scrolling records on form

 
Old May 26th, 2005, 07:39 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 248
Thanks: 0
Thanked 1 Time in 1 Post
Default

The closest thing I could find was this: http://support.microsoft.com/default...b;en-us;308636 I tried this using a class inside Access 2003. That tends to hang the computer. So creating the ActiveX DLL is necessary.

Mostly if you change your form to display only one record (Cycle = Current Record, Allow Additions = No) you can gain a little control. But that means you have to set up other options for your users to scroll through records.

Randall J Weers
Membership Vice President
Pacific NorthWest Access Developers Group
http://www.pnwadg.org
 
Old May 26th, 2005, 10:29 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 217
Thanks: 0
Thanked 1 Time in 1 Post
Default

Civa,
Try the mousewheel.dll found here: http://www.lebans.com/mousewheelonoff.htm

One of the Forum members steered me here several months ago when I was having the same problem. This is a newer version of the .dll than what we have been running for the past several months. (The mousehook took care of most of the problem of scrolling through the recordset or adding a new record) on all but one of our forms.

HTH,
Loralee

 
Old June 28th, 2005, 09:20 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 217
Thanks: 0
Thanked 1 Time in 1 Post
Default

For the record.......Lebans has a new version of his mousehook.dll (introduced a few months ago and found at URL noted above. I installed it a few days ago (replacing the previous version) and it is handling the mousewheel in the ALL our forms now.
Loralee

 
Old September 2nd, 2007, 08:50 AM
Registered User
 
Join Date: Sep 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm facing the same problem, but when i tried to apply the second step :

Code:
Set the class module properties as follows:   Class Module: CMouseWheel
   -------------------------
   Name: CMouseWheel
   Instancing: 5 - MultiUse


i could not do it, from where i can set this property of the class module..

thanx,
Enas..

 
Old September 2nd, 2007, 01:58 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 217
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Enas:

Do you have an opening screen or splash screen for your app? You could put the calling code in it's load event.
(Dim blRet As Boolean

    blRet = MouseWheelOFF)

If you have an exit proceudre for the application, put the code to return the mousewheel there. All you have to do is COPY Stephan's module for the class into your mdb and and drop a copy of mousehook.dll into the same folder as your mdb or into the system folder. That's it- you don't have to re-write his code.

HTH,

Loralee






Similar Threads
Thread Thread Starter Forum Replies Last Post
Mouse Wheel dartcoach VB How-To 0 November 12th, 2006 03:09 PM
mouse wheel aytacakin Pro JSP 0 November 16th, 2005 04:01 AM
mouse wheel aytacakin Javascript How-To 1 November 15th, 2005 12:10 PM
Mouse Wheel Event BSkelding ASP.NET 1.0 and 1.1 Professional 3 March 30th, 2005 09:12 AM
Mouse Wheel Scroll Help shadowpug VB.NET 2002/2003 Basics 3 July 26th, 2003 02:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.