发布网友 发布时间:2022-04-20 10:56
共1个回答
热心网友 时间:2022-04-20 12:25
123456789 public GetThreadForm() { InitializeComponent(); this.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.AutoMouseWheel); //加入窗体鼠标滚轮事件 } private void AutoMouseWheel(object sender, System.Windows.Forms.MouseEventArgs e) //窗体鼠标滚轮事件 { this.AutoScrollPosition = new Point(this.HorizontalScroll.Value, this.VerticalScroll.Value + e.Delta);//控制纵向滚动条滚动 }