I have a panel on my form with AutoScroll set to true so a scrollbar appears automatically.
How can I make it so a user can use his mouse wheel to scroll the panel? Thanks SO.
You might see a small wheel on your mouse, located between the left and right mouse buttons. This is what is known as the scroll wheel. The scroll wheel can be rotated by your index finger and used to move up and down a document or a webpage.
Many mice and some touchpads have a middle mouse button. On a mouse with a scroll wheel, you can usually press directly down on the scroll wheel to middle-click. If you don't have a middle mouse button, you can press the left and right mouse buttons at the same time to middle-click.
What worked for me was adding panel1_MouseEnter
EventHandler:
private void panel1_MouseEnter(object sender, EventArgs e) { panel1.Focus(); }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With