My panel contains the picturebox, when I zoom in the picture box dimension, the panel has its scrollbar, but I can use the wheel of mouse to move the vertical scroll bar ?
Do you know why ?
Thanks !!!
The mousescroll only works when a control is selected. Picturebox is never selected, unless you do it explicitly in code. Try to Select it in MouseClick event.
Very thanks, that works !!!
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
Panel1.Select()
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.