Overriding OnMouseWheel

J

jonpb

Hi, I am extending a PictureBox. I have implemented overrides of
OnResize and OnMouseMove that work as I expected, i.e. they handle the
windows message sent by the system and calling base.OnResize raises the
C# event for other listeners in the application.

However, overriding the OnMouseWheel, the function is never entered. Is
there something special about overriding OnMouseWheel for a PictureBox?

Thanks very much
 
J

jonpb

jonpb said:
Hi, I am extending a PictureBox. I have implemented overrides of
OnResize and OnMouseMove that work as I expected, i.e. they handle the
windows message sent by the system and calling base.OnResize raises the
C# event for other listeners in the application.

However, overriding the OnMouseWheel, the function is never entered. Is
there something special about overriding OnMouseWheel for a PictureBox?

Thanks very much

I was able to get the messages by overriding OnMouseEnter and calling
this.SetFocus()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top