private void Form1_Load(object sender, EventArgs e)
        {
            this.MouseWheel += new MouseEventHandler(Form1_MouseWheel);
        }

        void Form1_MouseWheel(object sender, MouseEventArgs e)
        {           
            if (e.Delta > 0)
            {
                this.Text = "正在向上滚动滑轮";
            }
            else
            {
                this.Text = "正在向下滚动滑轮";             
            }
        }

 

相关文章:

  • 2022-02-08
  • 2021-11-22
  • 2021-08-02
  • 2021-12-22
  • 2021-12-01
  • 2022-12-23
  • 2021-08-24
  • 2022-02-22
猜你喜欢
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
相关资源
相似解决方案