Overriding OnMouseWheel

  • Thread starter Thread starter jonpb
  • Start date Start date
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
 
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()
 
Back
Top