Overriding OnMouseWheel

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jonpb

    #1

    Overriding OnMouseWheel

    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

    #2
    Re: Overriding OnMouseWheel

    jonpb wrote:
    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()

    Comment

    Working...