Mouse wheel event to work with hovered control

前端 未结 4 1026
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-04 11:37

In my C# 3.5 Windows Forms application, I have a few SplitContainers. There is a list control inside each (dock fill). When the focus is on one of these controls and I move mous

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-04 12:13

    Use Control.MouseEnter Event to set focus to to the control. E.g. using ActiveControl Property

提交回复
热议问题