How can I scroll my panel using my mousewheel?

前端 未结 9 1554
情歌与酒
情歌与酒 2021-01-17 09:19

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?

9条回答
  •  被撕碎了的回忆
    2021-01-17 09:53

    The panel or a control in the panel must have focus. Note that if the control with focus has scroll bars, it will scroll instead of the panel.

提交回复
热议问题