PDA

View Full Version : Scroll Wheel in ListBox



Elladan
04-27-2005, 09:55 AM
Hi All,

I'm new to this forum, but have been programming in VBA a little while. I have a listbox in a search form that has constant data in it (refreshed periodically with a new search). The list is obviously longer than the box is tall, so I want to know if there is a way for the scroll wheel or arrow keys (both preferably) to scroll through this list box once the box has focus.

I'm using Acess 2000 and I've currently installed the mousewheel.dll as shown on the Microsoft help pages (can't remember where exactly) so that I do not scroll records. However, even if I turn this off, I still cannot use the scroll wheel to scroll through the listbox.

I'm trying to avoid using the scroll bars, that's all. I know, kinda petty, but can someone help?

Thanks!

Elladan
:banghead:

Bob Phillips
05-05-2005, 03:54 AM
A solution involving a cheap 3rd party activex control at
http://www.enhanceddatasystems­.com/ED/Pages/ExcelListScrolls­.htm (http://www.enhanceddatasystems­.com/ED/Pages/ExcelListScrolls­.htm)

Another optyion, the Mabry MouseWheel control and a Windows callback funtion - documented on their site.
http://www.mabry.com/mwheel/in­dex.htm (http://www.mabry.com/mwheel/in­dex.htm)

Offered as is.