473,395 Members | 1,948 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Scroll button

29
I'm designing a form and I want to deactivate the scroll button. Everytime someone uses the scroll button, it goes to either a new record or previous record. I don't want this capability. May I get some help?
Aug 11 '08 #1
5 2139
NeoPa
32,556 Expert Mod 16PB
If you look in the properties of the form you should see what you need.

The combination of selections depends on exactly what you require.
Aug 11 '08 #2
missinglinq
3,532 Expert 2GB
He's not actually talking about the scroll bar, he's talking about the mouse's scroll wheel! I only know this because this question was also posted in another forum and this was figured out there.

If you're running Access 2007, you already have a function that addresses this issue! Just check with Help.

For all other versions, you'll need some outside help. A gentleman by the name of Stephen Lebans has a sample database that does this and it can be downloaded free at:

http://www.lebans.com/mousewheelonoff.htm

First, download and unzip the db and take a look. Go into your db and goto File > External Data > Import and import the module modMouseHook from the sample database. Next make sure you have the included file, MouseHook.dll, in the same folder your database resides in. The following code needs to run before the mousewheel will be locked:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Load()
  2.  'Turn off Mouse Scroll
  3.  blRet = MouseWheelOFF
  4. End Sub
  5.  
If you have one form that always loads first in your db, place the code there. If the first form to load varies, place the same code in each form.

You should be set now.

Linq ;0)>


As was See what Stephen Lebans has at http://www.lebans.com/mousewheelonoff.htm
Aug 12 '08 #3
NeoPa
32,556 Expert Mod 16PB
Thanks for that Linq. It does make better sense in that light of course ;)
Aug 12 '08 #4
Scldb
29
Thanks for that Linq. It does make better sense in that light of course ;)
Yes this works. Got the mousehook.dll all set up and it's running smoothly.
Aug 12 '08 #5
missinglinq
3,532 Expert 2GB
Glad we could help!

Linq ;0)>
Aug 12 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Arlie Rahn | last post by:
I would like to ad a custom scroll bar control to my app that has a customizable and "flat" look to it (not the normal VB look). Does anyone have any ideas on where to find a good one?
3
by: cmay | last post by:
I am trying to use scrollIntoView to programatically scroll an area on one of my pages. It wors just like you would expect it to when the page itself doesn't have any scrolling (the page is...
1
by: VINAY | last post by:
Dear All, The subject line could be bit confusing. So let me explain in details, please have patience. I have developed an ActiveX Control(Combo Box Control) in VB6 for a touch screen...
2
by: Grey | last post by:
I have designed a ASP.NET form with many controls, so it needs to scroll down with the scroll bar. My question is when I press "add" button in datagrid(the datagrid was located at the bottom of the...
0
by: Martin Eyles | last post by:
I want to make a pop-up window with a scroll-bar, which a user can select a value with, and send it back to server. this server will then send back a new page containing that value. Also, opening...
1
by: JC | last post by:
I'm sure you've all seen the save scroll position from 4 guys from rolla which can be found here > http://aspnet.4guysfromrolla.com/articles/111704-1.aspx BUT try to get that to work AND still be...
5
by: Daniel | last post by:
Hi All, i have problem to scroll the page the the specific section of the page after click a command button. I have tried using <a name="f"> and use response.redirect("xxxx.aspx?#f"). Although...
0
by: Mary | last post by:
Hi, In a form there is add and save buttons to add items to the database. The primary key of the records are displayed in a grid. When we select an item in the grid, its fields are displayed in...
0
by: Eric | last post by:
When I use the scroll up and down button in my form it shows an empty form and some times it save blank record. Is it possible i will lock my form if any one use the scroll button of mouse my form...
5
by: Lord Zoltar | last post by:
Hello, I'm trying to force a listView to scroll to some location when a certain button is clicked on. I've found that the SendMessage function seems to be the choice way of doing it. Here's what...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.