We help IT Professionals succeed at work.
Get Started

Can't Trap MouseMove / MouseDown event

saikit
saikit asked
on
493 Views
Last Modified: 2008-03-10
I'm learning to write a screen saver, this screen saver has some label controls and image controls on the form of the main screen.

I use Form_Keydown, Form_KeyPress, Form_MouseDown and Form_MouseMove events to trap the repsond of user.

The Form_Keydown & Form_KeyPress events are work fine, however, when the mouse pointer is on the one of the controls (label or image), the Form_MouseDown and Form_MouseMove is no repsond for the mouse clicking or moving.

I think I can't make another MouseDown and MouseMove events (eg Image1_MouseMove) for the labels or image controls, because there may not only one label or image on the form.

How can I overcome it?


Thank for helping.
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 17 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE