none
capture Mouse Wheel event in c#.net 2005

Answers

  • Here's how you do it if you're trying to get it on a WinForm.

     

    Code Block

    public Form1()

    {

    InitializeComponent();

    this.MouseWheel += new MouseEventHandler(Form1_MouseWheel);

    }

    void Form1_MouseWheel(object sender, MouseEventArgs e)

    {

    //Do Something

    }

     

     

    Friday, November 16, 2007 12:27 PM