Re: Mouse Event, opposite of action Click?



Mmm, how about MouseLeave? If the mouse isn't over the Control it certainly
did *not* click it.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer

Presuming that God is "only an idea" -
Ideas exist.
Therefore, God exists.

"RobKinney1" <RobKinney1@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4FB01BC4-C91C-4EA4-90EF-54E5CB6555D2@xxxxxxxxxxxxxxxx
The subject line sounds a little funny, let me quickly explain:

I have created a custom control using ComboBox. But inside my class, I
need
to know when the user does NOT click my control.

Of course, I can capture the event Click when someone clicks on the actual
control, but not when they click off of it.

Right now I am using the event handler myCustomControl.LostFocus, but that
requires someone to click on another button or text field before it will
fire
that event. I want to be able to have the user be able to click on some
blank space anywhere outside the control and the event to fire. I have
also
set up a Click event on my parent control, and that works as long as the
user
clicks inside that parent control, but doesn't if they click on the parent
of
the parent.

Is there some kind of all encompassing Click event I can capture no matter
where the mouse is clicked in my app?

Does anyone know how to do this? It sounds simple enough, but it is
causing
a big headache. Thank you all for reading this.

Rob K


.