Results 1 to 5 of 5

Thread: [RESOLVED] Mouse scroll wheel on flowlayoutpanel

  1. #1

    Thread Starter
    Member
    Join Date
    May 2008
    Location
    Lexington, KY
    Posts
    59

    Resolved [RESOLVED] Mouse scroll wheel on flowlayoutpanel

    Anyone have a sample piece of code that shows how to scroll up and down in a flowlayoutpanel using the mouse wheel instead of having to drag the scroll bars?

    Thanks in advance
    Jeff
    "Maximum Newbocity has been achieved!"

  2. #2
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: Mouse scroll wheel on flowlayoutpanel

    in flowlayoutpanel's MouseEnter and click event write this

    flowlayoutpanel.focus()
    __________________
    Rate the posts that helped you

  3. #3

    Thread Starter
    Member
    Join Date
    May 2008
    Location
    Lexington, KY
    Posts
    59

    Re: Mouse scroll wheel on flowlayoutpanel

    hmm not really sure how to do that.
    Jeff
    "Maximum Newbocity has been achieved!"

  4. #4
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: Mouse scroll wheel on flowlayoutpanel

    I don't think he can be much clearer. You just need to add an MouseEnter event to your current FlowLayoutPanel object.

    For example:
    Code:
        Private Sub FlowLayoutPanel1_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FlowLayoutPanel1.MouseEnter
            FlowLayoutPanel1.Focus()
        End Sub

  5. #5

    Thread Starter
    Member
    Join Date
    May 2008
    Location
    Lexington, KY
    Posts
    59

    Re: Mouse scroll wheel on flowlayoutpanel

    I see. I guess I was making it harder than it seemed.

    Thanks
    Jeff
    "Maximum Newbocity has been achieved!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width