JohnKelly 0 Light Poster

Dear all

I am writing an App in VB6 and I want to trap the Mouse Wheel scroll. I have search on the web and found how to hook the windows messages. I set the hook on Form.Activate and then Unhook it in Form.deactivate.

This all seems to work OK exept !!!! when I run the program from within the VB6 developer and I press the exit form icon to close the program it seems to follow all the correct proceedures and triggers the call to unhook and then closes the program, but it also goes on to close the VB6 developer environment as well. Has anyone else experience this or has any pointers on how to trap the mousewheel event.

Thank you all in advance I have always found the help from this forum very beneficial.

John Kelly

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.