Herfried, you are the dog's doo-dahs (abstruse English compliment q.v.
"cat's pyjamas").
You clearly know stuff, but honestly, I did look all over before asking the
question. Where are such gems hidden? As far as I can tell this is not
alluded to in the MSDN, and when I looked up the error message "Derived
classes cannot raise base class events" there was no mention of the solution
you gave. Ever thought of writing a book?
Charles
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c0*************@ID-208219.news.uni-berlin.de...
* "Charles Law" <bl***@nowhere.com> scripsit: In a user control, is it possible to replace the default mouse events
with In particular, I want the consumer of my control to get MouseMove events
when the mouse is over my control, so that they can change the cursor.
However, my control has several standard controls on it, and the
consumer of my control only gets MouseMove events when the mouse is over the control
itself, and not when it is over the standard controls. Therefore, I want
to raise/invoke the MouseMove event myself, when the mouse moves over these
standard controls. How can I do this?
You will have to add handlers for the embedded controls' mouse events
and call the appropriate 'MyBase.On*(sender, e)' method in the handler
in order to raise the event for the usercontrol.
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>