• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 362
  • Last Modified:

Disabling Mouse Wheel in a Snapshot ActiveX

Is this possible ?

I'm using the famous MouseHook.dll and it works flawlessly in all my application but the damn snapshot objects. When the focus isn't in the snapshot, the mouse wheel doesn't work but as soon as the focus is in it, the mouse wheel starts to work again. Any way to get around this ?

Thanks
0
ee can
Asked:
ee can
  • 2
  • 2
2 Solutions
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Do you mean that the mouse won't work at all if you're viewing a snapshot? Even in other applications? So the only way to make your mouse work it so set the focus in the snapshot?
0
 
ee canAuthor Commented:
No I'm saying that I want to disable the mouse wheel in the snapshot ! Even when using the MouseHook.dll, the mouse wheel works in the snpashot activex (once it has received the focus).
0
 
ee canAuthor Commented:
Nobody knows ?!
0
 
Jeffrey CoachmanCommented:
motabobo,

I'm guessing you tried putting the code to disable the mouse wheel on the Gotfocus or OnEnter event of the snaphot Activex control, and it did not work?

From what I know about the MouseWheel utility, it works on Forms and sub forms, not Activex controls.

jeffc
0
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
sorry to be so late returning to this question, got lost in the pile.

The snapshot viewer is entirely separate from Access ... in fact, you don't even need Access installed on a machine to successfully load and run the Snapshot viewer. An Activex control runs outside of Access and therefore any code you're running in Access has no bearing on the control. I'd be surprised if code you run in Access would affect an Activex in this manner.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now