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
Printable View
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
in flowlayoutpanel's MouseEnter and click event write this
flowlayoutpanel.focus()
hmm not really sure how to do that.
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
I see. I guess I was making it harder than it seemed.
Thanks