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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MouseHook.dll can work in popup forms?

Status
Not open for further replies.

Bresart

Programmer
Feb 14, 2007
314
ES
Hi, i need to disable the mouse wheel in an emerging form (popup form) but even with the variable set to False the wheel can move through the recordset.

I thing in a begining the dll MouseHook didn't work in popup forms, but after i am not sure if this has been fixed.

Thanks for looking.
 
How are ya Bresart . . .

For popup forms . . . [blue]works for me![/blue]

Perhaps you have the old 97 version. Get the latest version below:

MouseWheekHook

Extract the dll from the zip and replace the old . . .



Calvin.gif
See Ya! . . . . . .

Be sure to see FAQ219-2884:
 
Thanks for reply.

The problem is that i have a DBPix control, i have tested that without it the MouseWheelHook works.

I will start a new thread with that topic.
 
The problem isn't in the DBPix control, i have removed it and the problem go on there: when form opens, there is no problem, but when i just press any button that runs some code the problem come back.

But i have created a new popup form for testing the MouseWheelHook solution, the form only has a textfield. And it doesn't show any problem.

Can anybody give any orientation? Thanks.
 
Hi Bresert,

IIRC, the mousehook thing requires some code in the form's on_load event. I remember wondering why it wasn't working when I was developing once and then I realized I put the code in the form I was using as a switchboard, but I was bypassing the startup routine when I opened my file so that form wasn't ever loading.

Any chance you are doing the same?

Shot in the dark,
T
 
Thanks for reply. No, it wasn't this problem. FInally i don't know which was, i have solved it by copying and pasting all controls between the old form and a new one.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top